Quantcast
Channel: R.NET
Viewing all articles
Browse latest Browse all 1634

New Post: R.NET and Web application

$
0
0
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!

Viewing all articles
Browse latest Browse all 1634

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>