-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Empty, unwanted Rplots.pdf #2787
Comments
I also corrected a couple of errors/typos in the Makefile. I switch the data-sources.Rmd file from glimpsing the `.csv` file to the `.rds` file, which is more consistent with the rest of the analysis. # Rplots.pdf There was a weird error where I get an empty Rplots.pdf file after running plot-sds.R. This was a known error (http://stat545.com/block017_write-figure-to-file.html#mysterious-empty-rplots.pdf-file and tidyverse/ggplot2#1326), but apparently had been fixed--I'm running ggplot2 3.0.0. I tried downloading the development version of ggplot2, but that didn't solve the problem. I grabbed v2.0.0 from GitHub, but other packages depend on >2.2.1. I tried with 2.2.1 and it seemed to fix the error, so I submitted an issue (tidyverse/ggplot2#2787).
Probably related to #2363 |
Would you mind checking with |
@clauswilke's issue-2363-ggsave branch (d44b60f) fixes the problem. For completeness, I'm getting an error with @clauswilke's suggested install command, though. I used the following, which I think accomplishes what he wants.
The working example with d44b60f is then:
This doesn't create |
Yes, apologies, should have been I'll close this as a duplicate of #2363. It seems that my PR fixes the problem. |
This old issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with reprex) and link to this issue. https://reprex.tidyverse.org/ |
In the past,
ggsave()
run non-interactively withRscript
in the terminal produced the empty, unwanted fileRplots.pdf
. See the history here according to @jennybc and her previous issue #1326. It seems like the issue has reappeared in ggplot2 v3.0.0.Here are two examples. The first block of code uses ggplot2 v2.2.1**, which doesn't produce
Rplots.pdf
when called withRscript
in the terminal. The second block uses ggplot2 v3.0.0 and it does createRplots.pdf
.Note that the code below installs packages.
v2.2.1 doesn't produce
Rplots.pdf
v3.0.0 does produce
Rplots.pdf
The text was updated successfully, but these errors were encountered: