Run R in php under ubuntu
问题 I have an R script that runs just fine when I run it from the command line and saves an image to the file system. However when I run it from the php script using the following command : exec("cat my_rscript.R | /usr/bin/R --vanilla"); It doesn't run. Note that when I'm running it in the command line I'm using the exact same call. I'm pretty sure that I'm in the right directory (the php file and the R script are in the same directory). What could be the cause me not being able to run the R