R.Net 1.9.0 does not work with .Net 5 Core application

186 Views Asked by At

Below logic working fine with .Net Framework 4.7.1 and its not working with .Net 5 application. Application simply crashed without displaying any error message.

Help me to run R.Net in .Net 5 application without any error.

class Program
{
    public static string RPath { get; set; } = @"C:\Program Files\R\R-4.1.2\bin\x64";
    public static string RHome { get; set; } = @"C:\Program Files\R\R-4.1.2\";
    static void Main(string[] args)
    {
        REngine.SetEnvironmentVariables(RPath, RHome);
        REngine _rEngine = REngine.GetInstance();
        Console.WriteLine("Object created");
    }
}

Referring R.Net package from Nuget Thanks in advance

0

There are 0 best solutions below