Re: [R] quartz() on MAC OSX

From: Paul Roebuck <roebuck_at_mdanderson.org>
Date: Tue, 22 May 2007 01:30:24 -0500 (CDT)

On Tue, 22 May 2007, hadley wickham wrote:

> On 5/22/07, Rolf Turner <r.turner@auckland.ac.nz> wrote:
>
> > On 22/5/07 6:48 AM, "hadley wickham" <h.wickham_at_gmail.com> wrote:
> >
> > > Two possible solutions:
> > >
> > > * DISPLAY=0.0.0.0:0 R - and then X11() should work without having to use
> > > xterm
> > >
> > > * install.packages("CarbonEL"); library(CarbonEL); quartz()
> >
> > It is clear that life is determined to frustrate me. I had a look at CRAN
> > just now and could find no sign of a package called "CarbonEL". The list
> > jumps from "car" to "cat" --- no "Carbon" of any flavour. What gives?
> >
> > Also I tried setting the DISPLAY (probably incorrectly, since I don't
> > understand what's going on). I used
> >
> > > Sys.setenv(DISPLAY="0.0.0.0:0 R")
> > > X11()
> >
> > And got the error message
> >
> > Error in X11() : X11 module cannot be loaded
>
> Sorry, just type
> DISPLAY=0.0.0.0:0 R
> at the command prompt

Edit ~/.Rprofile (create if necessary) as below:

$ cat << NOMORE >> ~/.Rprofile
Sys.putenv("DISPLAY"=":0.0")
NOMORE
$

You should start the X11 server first before expecting the functionality to work, as below:

[[ Terminal.app ]]
$ open /Applications/Utilities/X11.app
$ R
> X11()

Discussion of Mac-specific issues belongs in r-sig-mac, not r-help.



SIGSIG -- signature too long (core dumped)

R-help_at_stat.math.ethz.ch 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. Received on Tue 22 May 2007 - 06:37:46 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 22 May 2007 - 07:31:07 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.