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

Kuhn, Max Max.Kuhn at pfizer.com
Fri Nov 3 17:09:28 CET 2006


And on that note, here is a function that I use to get around it:
 

-----Original Message-----
From: r-help-bounces at stat.math.ethz.ch
[mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Jeffrey Horner
Sent: Friday, November 03, 2006 10:01 AM
To: ryszard.czerminski at novartis.com
Cc: r-help at stat.math.ethz.ch
Subject: Re: [R] R CMD BATCH: unable to start device PNG

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

______________________________________________
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.
----------------------------------------------------------------------
LEGAL NOTICE\ Unless expressly stated otherwise, this messag...{{dropped}}



More information about the R-help mailing list