I have an R script that can be run easily using the following code:
public DataFrame RunXCMS()
Error: Unable to load 'mzR' which needs to be loaded with the XCMS package.
Why does it work when I launch it from Console App but not Web app?
Thanks!
public DataFrame RunXCMS()
{
REngine.SetEnvironmentVariables();
REngine engine = REngine.GetInstance();
engine.Evaluate(@"source('script.R)");
DataFrame testData = engine.Evaluate("read.csv('filepath)").AsDataFrame();
return testData;
}
However, when I call this function using a web app one of the modules that need to load with the script fails to loadError: Unable to load 'mzR' which needs to be loaded with the XCMS package.
Why does it work when I launch it from Console App but not Web app?
Thanks!