R.NET and Web application

Aug 22, 2015 at 5:56 PM
I have an R script that can be run easily using the following code:

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 load

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!
Developer
Aug 23, 2015 at 2:34 AM
This is a common issue encountered when using R.NET in conjunctions with ASP.NET

I just added some documentation about it in the new documentation site, page http://jmp75.github.io/rdotnet/tut_asp_dot_net/

Cheers
Aug 23, 2015 at 11:16 PM
Thanks!!!