[R] running R from PHP

brook@biology.nmsu.edu brook at biology.nmsu.edu
Tue Feb 3 03:26:04 CET 2004


I would like to construct a PHP script that runs R to generate a
graphics file.  Running R itself is no problem.  However, it seems
impossible to instantiate one of the graphics devices to create
output.  For example, the "normal" bitmap devices (e.g., jpeg, png,
etc.) are derived from X11, which requires a display.  This seems
true, even if no output is ever directed to a real display.  For some
reason, the postscript device seems to suffer from similar problems.

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?

Thanks for your help.

Cheers,
Brook




More information about the R-help mailing list