[R] R CMD BATCH: unable to start device PNG

Jeffrey Horner jeff.horner at vanderbilt.edu
Fri Nov 3 16:01:25 CET 2006


ryszard.czerminski at novartis.com 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



More information about the R-help mailing list