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

From: Dieter Menne <dieter.menne_at_menne-biomed.de>
Date: Wed 21 Jun 2006 - 23:06:40 EST

Angel Roman <aroman6 <at> gmail.com> writes:

> 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");
...

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

Try the following in your script to find out if you can create jpeg on your operation system.

sink("cap.txt")
capabilities()
sink()

Dieter



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 Wed Jun 21 23:10:52 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 - 00:12:02 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.