I call an R script from PHP and it works well. I just call it using this function
To do that I had to set environment variables in Windows to the R executable be recognized by the OS.
Well now I am trying to do the same for Linux. I have the same error that I had on Windows before setting environment variables:
Rscript:not found 127
I think the Linux operating system is not finding the path to the R "executable" when I call it from PHP.
I think that I must to set the environment variables to R on Linux but I don't know how to do that.
What should I do?