AnsweredAssumed Answered

CDR with Microsoft R - issue with RDotNet assembly

Question asked by GBellido_KBC on Jul 13, 2018
Latest reply on Jul 23, 2018 by Marcos Vainer Loeff



I’m creating a CDR with Microsoft R but I’m having issues with the RDotNet assembly. I’m referencing it in my code and seems to load and debug successfully. However, it throws an exception when testing it with PI System Explorer: Could not load file or assembly 'RDotNet, Version=, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified. However, I can see the added references and don’t get any error when debugging. The exception is thrown only when it executes the first step related to R (REngine.GetInstance())


I’m using Microsoft R Open R-3.5.0, I’ve been working with RGui and it works perfectly. Project target platform is x64. Using NuGet Package R.NET.Community 1.7.0 (which also installs R.NET package). Registering the dll with the regplugin64…


Perhaps is related to a dependency. The message is not much informative.


Would you have any recommendation?