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

From: Prof Brian Ripley <ripley_at_stats.ox.ac.uk>
Date: Wed 21 Jun 2006 - 20:00:32 EST

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

______________________________________________
R-help@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
Received on Thu Jun 22 05:59:01 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Thu 22 Jun 2006 - 08:12:22 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.