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

Created Unassigned: Can't access R package libraries [127]

$
0
0
This Project looks very promising, please dont abandon it in any case.
I am having, like many before me, issues with accessing R packages from within an REngine. My specs:

.) Win XP SP3
.) Visual Studio Express C# 2010
.) WinForms Project
.) R.NET 1.5.10
.) R-3.0.3 (although there are some other dlls lying around in other directories from previous R installations)
.) operating in an office network, no admin. R is installed locally.

As you can see in the code, I am manually setting R_HOME. Without that, it doesnt work at all. I am trying to set the libs path as well, but it just tells me that there are no library trees in lib.loc. When i output the .libsPath() I get a strange result: the DVD drive D:/. However when I ask the same question in the R console, it tells me the correct path. Any help dearly appreciated.
Of course I tried crosschecking with existing issues/discussions but to no avail.

```
string rhome = @"C:\Programme\R\R-3.0.3";
System.Environment.SetEnvironmentVariable("R_HOME", rhome);
System.Environment.SetEnvironmentVariable("PATH", System.Environment.GetEnvironmentVariable("PATH") + ";" + rhome + @"\bin");
System.Environment.SetEnvironmentVariable("R_LIBS", @"\library");

REngine engine = REngine.GetInstance();
engine.Initialize();
engine.Evaluate("library(timeSeries)");
engine.Dispose();
```

Viewing all articles
Browse latest Browse all 1634

Trending Articles



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