[R] png() or jpeg() in a php script

Prof Brian Ripley ripley at stats.ox.ac.uk
Wed Jun 21 12:00:32 CEST 2006


This is covered (in at least three places) on the help page for those 
functions.

> PLEASE do read the posting guide! 
http://www.R-project.org/posting-guide.html

and do as we ask (including reporting your system, reading help pages and 
not sending HTML mail).

On Wed, 21 Jun 2006, Angel Roman wrote:

> Hello,
>
> I've got a problem with a PHP script, in which I call the system function
> (to call another processes). The call is :
>
> system("R --slave --vanilla < path/to/source/source.R");
>
> if in this R file, I've got the lines:
>  pdf(file="/path/to/file/file.pdf")
>  commands
>  dev.off()
>
> the pdf file is perfectly created
>
> but if I change the lines to:
>
>  png(file="/path/to/file/file.png");
>  commands
>  dev.off()
>
> (or with the jpeg() function)
>
> the files are not created. any help?
>
> Thanks
>
> 	[[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
>

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



More information about the R-help mailing list