[Rd] Re: Producing PNG on Debian Linux (was the false bug report, Re:
[Rd] png output requires X connection (PR#1165))
Dirk Eddelbuettel
edd@debian.org
Sun, 18 Nov 2001 08:34:14 -0600
"Brian" == Brian D Ripley <Prof> writes:
Brian> Already done in R-devel:
Thanks!
Brian> NB: on our servers there is an X11 display available to cron jobs.
Hm. I just added x11() to the script snipped of yours:
edd@sonny:~> cat /tmp/R.sh
#!/bin/sh
echo | R -q --no-save <<EOF
bitmap("test.png")
plot(1:10)
graphics.off()
x11()
EOF
but starting this under at(1)
edd@sonny:~> echo /tmp/R.sh | at now
warning: commands will be executed using /bin/sh
job 57 at 2001-11-18 08:31
yields an error:
From: Dirk Eddelbuettel <edd@debian.org>
To: edd@eddelbuettel.com
Subject: Output from your job 57
Date: Sun, 18 Nov 2001 08:31:59 -0600
> bitmap("test.png")
> plot(1:10)
> graphics.off()
> x11()
Error in X11(display, width, height, pointsize, gamma, colortype, maxcubesize) :
unable to start device X11
Execution halted
How does Solaris do this, and how can we get Linux to do the same?
Dirk
--
Better to have an approximate answer to the right question
than a precise answer to the wrong question. -- John Tukey
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel 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-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._