I use ssh -Y in this situation. You can test with other X client applications, such as xclock. Try running xclock after your login. If you get the same "unable to open" message then it's not an R problem.
-Don -- Don MacQueen Lawrence Livermore National Laboratory 7000 East Ave., L-627 Livermore, CA 94550 925-423-1062 On 4/10/12 6:48 AM, "carol white" <wht_...@yahoo.com> wrote: >Hi, >I run R on a unix server and login from a Mac with ssh -X. When I want to >run a graphics function like hist, I get the following x11 message: > >Error in X11(d$display, d$width, d$height, d$pointsize, d$gamma, >d$colortype, : > unable to start device X11cairo >In addition: Warning message: >In function (display = "", width, height, pointsize, gamma, bg, : > unable to open connection to X11 display '' > >Do I need any library like cairo installed on my local Mac? > >I also set LC_CTYPE="en_US.UTF-8" in my profile > >Cheers, > >Carol > [[alternative HTML version deleted]] > ______________________________________________ R-help@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.