[R] How to know what device I am using

Halldór Björnsson halldor.bjornsson at gmail.com
Thu Apr 30 16:18:35 CEST 2009


Some years ago I wrote a plotting routine that was run
on both Linux & Windows computers.

There were some differences in the way the plot looked
from the windows device and the X11 device.

To ensure consistency I used
getOption("device"))
and made some changes to the plotting if the windows device was being used.

Using this routine again, years later, I now notice that
getOption("device") returns a function listing, but no longer a string
with the name of the device.

What is the best way to query which device is the default?




More information about the R-help mailing list