Skip to content
Prev 51056 / 63424 Next

issues with dev.new avoiding RStudio plot device on unix?

On 29/09/2015 2:00 PM, Skye Bender-deMoll wrote:
The problem is that the device chosen by dev.new() depends on the GUI.
You can see the code that does this in grDevices:::.onLoad.  So in fact
with noRstudioGD=TRUE, the decision is identical to what it is in R:
you only get X11 if your GUI is X11 or Tk, you get pdf otherwise.
It's pretty common to use R on a machine where X11 won't work, so this
makes sense.

Now "RStudio" is common enough nowadays as a GUI so perhaps it should be
added to the list in both places, but I'm not sure that would work when
RStudio is running on a server rather than on the local machine.  I
think the RStudio people would have to make sure this worked, and if
they're doing that, wouldn't it be easier for them to provide the option
themselves?

Duncan Murdoch