I agree with Romain that you should probably try and get Rserve to work as that is a much better way. However, to get your commandline version working, I suggest you use the Rscript comman instead of a bash script. So let's say you save your R script as a myscript.R file. Then do:
shell_exec('Rscript /path/to/myscript.R'." 2>&1"); If that still gives you an error like Rscript command not found, then you need to make sure your R bin directory is added to the PATH system variable. -- View this message in context: http://n4.nabble.com/R-script-From-PHP-tp931996p932992.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.