[R] generating graphical output when DISPLAY is not set?

Simon Cawley simon_cawley at affymetrix.com
Tue Apr 30 22:51:20 CEST 2002


Is it possible to generate graphical output (to a file) when the
DISPLAY environment variable is not set?  Here's the problem:

  $ unset DISPLAY
  $ R
  > png("foo.png")
  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`'

I want to have a process running on a server call R to generate graphical
output, and the problem is that I'm not guaranteed to have a valid
DISPLAY set.  I have some clumsy workarounds, but it would be cleaner if
if I had some way to have R not require the DISPLAY.

Thanks,

-Simon

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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