I have an R script that I need to execute on my PHP page. Here's my code
exec("Rscript D:/webs/popdyn/SingleSpeciesLWR_2.r D:/webs/popdyn/hello.csv none");
I have 2 parameters here, 1st is my csv file and 2nd is none. It works well when I execute this in cmd, but in PHP it doesn't work.
Rscript. PHP may not find it in its own PATH environment.D:\webs\popdyn....Rscriptin PATH