[R] How to know what device I am using

Charles C. Berry cberry at tajo.ucsd.edu
Thu Apr 30 17:06:51 CEST 2009


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



More information about the R-help mailing list