[R] png output in batch

Deborah Swayne dfs at research.att.com
Wed Oct 25 21:59:01 CEST 2000


I'm trying to use R in a cgi script to produce graphics
files in png format, and I'm having a problem.

My shell command line looks like this:
  R </usr/dfs/auction/eligibility.R --no-save  >/tmp/R.out
and the line in the R script looks like this:
 png ("foo.png", pointsize=18)

If I run outside the cgi context, it runs great.  When
run as in a cgi script, I get this error message:

Error in X11(paste("png::", filename, sep = ""), width, height, pointsize,  : 
        unable to start device PNG

Is there any way to trick this command into doing what I want?

I can alternatively produce postscript output, and then
convert to png, but I find the resolution disappointing.

(I'm using unix.)

Debby

-- 
Deborah Swayne               AT&T Labs - Research 
dfs at research.att.com         Shannon Laboratory, Room B295     
www.research.att.com/~dfs    180 Park Avenue
973 360-8423                 Florham Park, NJ 07932-0971
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list