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

Closed Issue: Library problem [54]

$
0
0
Hi ,I used the R.NET project,and it run very well.
But recently I found a problem about libray.
here is my codes:
```
var envPath = Environment.GetEnvironmentVariable("PATH");
var rBinPath = @"E:\Program Files\R-3.0.1\bin\i386";//my path
Environment.SetEnvironmentVariable("PATH", envPath + Path.PathSeparator + rBinPath);

using (REngine engine = REngine.CreateInstance("RDotNet"))
{
engine.Initialize();
engine.Evaluate("library('pls')");//the pls package is needed in my code.
//...

}
```
my problem is that I can run this code right in my first time.But if I run it again,the code "engine.Evaluate("library('pls')");" will throw a exception.
So how to solve the problem? Is my way to use the R.NET wrong? Or there is a bug about it?
Thank you.
I am waiting for the right way to solve it. Please~
Comments: Closing this issue about multiple engine reinitializations, not feasible. Note that this contains detailed information about the root causes of the problem; do not rediscover.

Viewing all articles
Browse latest Browse all 1634

Latest Images

Trending Articles



Latest Images