You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Non-interactive calls to ggsave() can have irritating side effects #1326
Posting an issue sort of on behalf of @cscheid because I am so thrilled at the prospect of this getting fixed! (Please correct me if I'm mangling your problem, @cscheid.)
Calls to ggsave() that don't specify device width and height cause a graphics device to be opened and consulted for dimensions. In non-interactive settings, this can have irritating side effects, such as leaving an (empty or corrupt) Rplots.pdf file behind.
Activity
cscheid commentedon Sep 8, 2015
👍 This is exactly what's been happening with me as well. Notice the silly, overspecified (but necessary)
widthandheightin rplotcscheid commentedon Sep 8, 2015
(Incidentally, thank you, @jennybc, for filing the reprex and getting this off of my todo list! :))
jennybc commentedon Sep 8, 2015
I may or may not have encountered this problem before 😁
hadley commentedon Sep 8, 2015
Well in the dev version this produces:
but I think we can do a bit better ;)
jennybc commentedon Sep 9, 2015
Here's a pretty funny GitHub search. Sure there are lots of false positives but I still think the ggplot2 world will rejoice.
cscheid commentedon Sep 9, 2015
@jennybc that's a brilliant use of GitHub search, you're blowing my mind here.