-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issues with svg device in ggplot2::ggsave #6275
Comments
I'm sorry I can't reproduce this issue. Does the problem occur when you use this in a fresh R session (based on some unexpected attached packages in the session info)? |
Hi Teun, Now I have a different problem, but it's apparently with RStudio...... Thanks for your response! |
Just for completeness for anyone else who encounters the same problem, the RStudio fix appeared to be to turn off all R diagnostics, otherwise Rstudio will silently attach packages from scripts in all open tabs on startup, even if not requested. NB I suspect this behaviour isn't a problem the majority of the time, but one (or more) of the packages in one of my analysis scripts seems to be causing the conflict - I'm guessing IOBR but not 100% sure. |
Yeah I can understand this is frustrating. For these and other sorts of reasons, we recommend using the reprex package to produce self-contained examples. Anyway, as the problem appears to have originated elsewhere, I don't have the feeling ggplot2 needs to change somethings, so I'll close this issue. |
I've recently updated my R/Bioconductor installation and am now getting issues with saving svg images via
ggsave()
. When I try this, I get an error message about vector memory, even for the smallest test cases, egI've got svglite installed as suggested elsewhere, and saving to svg via
svg() ... dev.off()
works fine. Saving to other file types (eg pdf, png etc) withggsave()
also seems to be ok.I found this similar problem on SO, but I'm not using renv on this project, so that shouldn't be a factor - any advice appreciated, thanks!
Session info:
The text was updated successfully, but these errors were encountered: