[R.NET Last release - CREATE MULTIPLE ENGINES]

Jan 8, 2015 at 3:26 PM
Hi R.Net guys

After downloading and installing the last release of R.Net I try to create multiple instances of REngine in order to realise many parallelized computation with R (An Rengine in each C# thread).

However, I have problem I think the new version allow us to get some REngine instances but each instance seems using the same R session so impossible to use parallelized computation. Hence my test code:

REngine.SetEnvironmentVariables(); // <-- May be omitted; the next line would call it.
            var engine = REngine.GetInstance();
            var engine2 = REngine.GetInstance();
            engine.Initialize(); engine2.Initialize();
            engine.Evaluate("a <- 1");
            var a = engine.GetSymbol("a").AsInteger();
I hope some body can help me.

Thank you for your time.