When running a R function I created with Rscript command in ubuntu terminal (after su to Apache server www-data user) I get perfect results (function code not inserted due to length).
However, when running the same function via php exec("Rscript wrapper.R $N)"
on Apache I get absolutely nothing.
Note that other R functions I tried (like rnorm
) work just fine.
Is there some difference between the terminal run (again, in www-data user so permissions should not be a problem) and the php exec
that I am not aware of? What could be the source of such differences in results?