How to know what device I am using
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:
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?
______________________________________________ R-help at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
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