I am working on a project which requires some R code to be run for some data analysis. The project is primarily in JavaScript, and I need a way to run R code from JS. My research has not found any good way to do it yet. Is there any way to do so?
Also, I have next to no experience with R (another person is supplying the R code).
Rscript.exe
you can runyourScript.R
like thisvar shell = new ActiveXObject('WScript.Shell');shell .Run("Rscript yourScript.R arg1");