[R] running R from PHP
Joe Conway
mail at joeconway.com
Tue Feb 3 08:15:46 CET 2004
brook at biology.nmsu.edu wrote:
> Is there a trick to creating a graphics device in the absence of an
> actual display in order to create an image in a file?
Look for Xvfb (X virtual frame buffer). Not sure what OS you are
running, but on RH9 and Fedora, at least, there is a package called
XFree86-Xvfb.
I use Xvfb with the following command:
/usr/X11R6/bin/Xvfb :5 -screen 0 1024x768x16
More specifically I wrote an init script and set Xvfb up to start as a
service on boot.
Then in R I use:
x11(display=":5")
HTH,
Joe
More information about the R-help
mailing list