Skip to content
Prev 5674 / 15075 Next

How to Set Default Device to Quartz

On Sat, 28 Feb 2009, ivowel at gmail.com wrote:

            
Of course: see what its help says it does (and note what it says about 
where those symbols are, so you assigned to a different variable of 
that name).
It's not Mac-specific, it is an option() on all platforms.  E.g. 
?dev.new would have got you there.  See ?options and look for 
'device'.
Yes, some would.  E.g. quartz() will plot on the Mac screen, even 
when I've logged in from another machine -- only convenient if they 
are side-by-side (and something I have done whilst debugging the 
quartz() device).  There are also some odd font issues with quartz() 
that using X11() can circumvent.

Normally quartz() is the default if you use the R.app GUI, X11() 
otherwise *if* DISPLAY is set. And BTW, the choice of default is a lot 
more complicated than you make out: see src/library/grDevices/R/zzz.R 
.

I think this is a legacy of the time that a Mac terminal did not set 
DISPLAY, but now it does it is unclear whether the user wants to use 
it or not.