Re: [R] connection to X11 problem

From: Peter Dalgaard <p.dalgaard_at_biostat.ku.dk>
Date: Sun 23 Jul 2006 - 05:58:26 EST

(Ted Harding) <Ted.Harding@nessie.mcc.ac.uk> writes:

> On 21-Jul-06 Paquet, Agnes wrote:
> > Dear List,
> >
> > I am a new Mac user and I am having problem generating png (or jpeg)
> > using the GUI version of R. I installed R-2.3.1.dmg (custom install
> > with
> > everything selected) and X11User.pkg but I am still getting the
> > following X11 connection error when I try to generate a png (or a
> > jpeg):
> >
> > Error in X11(paste("png::", filename, sep = ""), width, height,
> > pointsize, :
> > unable to start device PNG
> > In addition: Warning message:
> > unable to open connection to X11 display ''
> >
> > I tried to set up the DISPLAY variable using the command:
> >
> > Sys.putenv("DISPLAY"=":0")
> >
> > but I am still running into the same problem.
>
> Like Marc, I don't use a Mac either. But the underlying BSD OS
> is basically similar to Linux. On Linux, my primary X11 DISPLAY
> envvar would be ":0.0", so (at a guess) I suggest you try
>
> Sys.putenv("DISPLAY"=":0.0")
>
> Hoping this helps!
> Ted.

A silly question must be asked: One thing is *installing* the X11 package on a Mac, but you do need to be actually *running* an X server. Are you?

-- 
   O__  ---- Peter Dalgaard             ุster Farimagsgade 5, Entr.B
  c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
 (*) \(*) -- University of Copenhagen   Denmark          Ph:  (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk)                  FAX: (+45) 35327907

______________________________________________
R-help@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 Sun Jul 23 06:03:50 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Sun 23 Jul 2006 - 08:17:41 EST.

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