[EMAIL PROTECTED] wrote: > Dear r-helpers: > > Any ideas how to avoid problem described below? > I am having the same problem when I run R remotly (not from cgi script); > somehow png device wants to talk to X11 and X11 complains... > > Best regards, > Ryszard > > error msg from batch R process (Linux/R-2.4.0) (executed on Apache server > from cgi script): > > 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 '' > Execution halted
Here's a snippet from the png help page: 'bitmap' provides an alternative way to generate PNG and JPEG plots that does not depend on accessing the X11 display but does depend on having GhostScript installed. (Device 'GDD' in 'GDD' is another alternative using several other additional pieces of software.) You can find GDD and another alternative Cairo here: http://www.rosuda.org/R Jeff -- http://biostat.mc.vanderbilt.edu/JeffreyHorner ______________________________________________ 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.