I have some problem use R.NET

Jun 14, 2012 at 2:55 AM

REngine.SetDllDirectory(@"D:\Program Files\R\R-2.15.0\bin\i386");
            using (REngine engine = REngine.CreateInstance("RDotNet", new[] { "-q" }))  // quiet mode
            {
                Console.WriteLine("-------------");
            }

 

some error message like this:

can not load target object "D:/p..../stats.dll".

package 'stats' in options<"defaultPackages"> was not found.

 

but use R-2.11.1 ,it's oky.

have some option setting use R-2.15.0?

Jun 18, 2012 at 10:58 AM

Don't use SetDllDirectory() as its depricated in 2.15.0. Try setting location of R.dll in PATH environmental variable (assuming on Win).

Jun 19, 2012 at 4:00 PM

trying to use REngine.CreateInstance("RDotNet", new[] { "-q" }) as in the example results in throw error: "ArgumentException was unhandled"

Warning 1 'RDotNet.REngine.CreateInstance(string, string[], RDotNet.Devices.ICharacterDevice)' is obsolete 

 

Vision Studio 10.0; .NET 4.0; R 2.15

Jun 21, 2012 at 2:57 AM
Edited Jun 21, 2012 at 3:05 AM

Thanks very much,It's Ok now.

I uninstall 2.11.1 and reinstall 2.15.0.