I'm on a 64-bit Windows machine. In Visual Studio 2012, it works in a web environment.
I used nuget to install the latest version of R.net (1.5.5), last published on 09/16/2013,
I tried installing Path (both the user and the system) to enable directrory "E: \ Program Files \ R \\\\\\\\\\\\\\\\\\\\\\\\ \\\\ \
I also tried this code according to some suggestions ...
// As per the example var envPath = Environment.GetEnvironmentVariable("PATH"); const string rBinPath = @"E:\Program Files\R\R-3.0.2\bin\x64"; Environment.SetEnvironmentVariable("PATH", envPath + Path.PathSeparator + rBinPath);
Before calling
// Create an instance of the engine engine = REngine.CreateInstance("RDotNet"); Initialize();
But I get this DllNotFound error .....
RDotNet.NativeLibrary.UnmanagedDll..ctor(String dllName) +267 RDotNet.REngine..ctor(String id, String dll) +55 RDotNet.REngine.CreateInstance(String id, String dll) +415
I researched and found that others made suggestions on how to fix this https://rdotnet.codeplex.com/discussions/353957 I read this and tried various things, including the "deprecated" SetDllDirectory (dllDirectory As String), and received a message that it is out of date, and I should not use it.
So I'm a bit of a dead end. Does RDotNet work on 64-bit? I read that the problem may be related to RlaPack.dll, referencing another Dll, I do not have
I also read that you need to set hints about R_Home ... but then others who say that this works in windows and I don't need to set R_home.
So, a small guide from the community, please, for the fact that I can try thanks to anyone who has experience with RDotNet / R in a C # environment
c # r rdotnet
julian guppy
source share