Skip to content

How to know what device I am using

2 messages · Halldór Björnsson, Charles C. Berry

#
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?
#
See

 	?dev.cur
and

 	?options

 	esp. the para on 'device' under 'Options set in package grDevices'

CCB
On Thu, 30 Apr 2009, Halld?r Bj?rnsson wrote:

            
Charles C. Berry                            (858) 534-2098
                                             Dept of Family/Preventive Medicine
E mailto:cberry at tajo.ucsd.edu	            UC San Diego
http://famprevmed.ucsd.edu/faculty/cberry/  La Jolla, San Diego 92093-0901