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

New Post: Azure // R.Net

$
0
0
Thanks for the note. Given the version I'm using (recently installed R.Net 1.5.16 via NuGet and then R 3.1.2 itself; Windows 8; Visual Studio Ultimate 2013), I don't have a static method on REngine called Initialize and the method available from the instance I get doesn't have the aforementioned parameters. Here's my code - when run, the process exits with code (0x2) when execution reaches the "GetInstance()" method below:

var curDirectory = Directory.GetCurrentDirectory();
REngine.SetEnvironmentVariables(curDirectory, curDirectory);
System.Environment.SetEnvironmentVariable("R_HOME", curDirectory);
var curPath = System.Environment.GetEnvironmentVariable("PATH");
if (null != curPath)
if (!curPath.Contains(curDirectory))
System.Environment.SetEnvironmentVariable("PATH", System.Environment.GetEnvironmentVariable("PATH") + ";" + curDirectory); 
_rEng = REngine.GetInstance();

Perhaps I'm missing a binary - the 14 files I'm copying to the current working directory live here: C:\Program Files\R\R-3.1.2\bin Do I need to move other pieces?

Thanks in advance.

jbt

Viewing all articles
Browse latest Browse all 1634

Trending Articles