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

New Post: [R.NET Last release - CREATE MULTIPLE ENGINES]

$
0
0
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.

Viewing all articles
Browse latest Browse all 1634

Trending Articles



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