Closed fabian-s closed 9 years ago
Yes, I noticed that Rstudio doesn't play well with multiple pages. Basically, I consider it a bug in Rstudio, it should follow the standard behaviour of dev.new. I believe there was a recent thread on r-devel / r-help where JJ said that they fixed some unusual behaviour of Rstudio's interactive device. Maybe it works now, I need to check.
Yes. I just tested the preview version of Rstudio, and it opens a quartz() window for the second plot, no error anymore. In the long-run this won't be an issue. For now though, we might have to leave with a few complaints, I don't think it's worth adding temporary hacks for this.
similar thing with ggsave(), by the way. You may notice that it doesn't work with the current release of ggplot2, but the dev version should accept gtables.
alright, makes sense. thanks for the prompt reply.
Calling
marrangeGrob
in RStudio always yields:and does not have the desired result if multiple pages are necessary -- pages simply get rendered on top of each other, so only the last one is fully visible.
In my code for the update of package
spikeSlabGAM
forgridExtra 2.0
, I have "solved" this by doing:Maybe something like this could be useful inside the package itself as well. Of course the active device still remains the one opened last by
marrangeGrob
despite theon.exit
-code and subsequent figures are rendered there and not in the RStudio graphics window, but: that's life... :hankey: