This project is read-only.

Connecting to R from C# using RDotNet unsuccessful from Forms application, but runs in console application


I copied the example script ( to a simple forms application, and it crashed on the REngine engine = REngine.GetInstance(); line giving the error message An unhandled exception of type 'RDotNet.EvaluationException' occurred in RDotNet.dll Additional information: Error: could not find function "memory.limit"

When copying the same script into a Console application, it runs without error.

Using Visual Studio 2015, R 3.2.2, RDotNet.Community 1.6.5