Update : got it to work with the following:
Now working on the Azure piece and will post an update today or tomorrow if there's progress.
Best,
jbt
var curDirectory = Directory.GetCurrentDirectory() + "\\rengine";
System.Environment.SetEnvironmentVariable("R_HOME", curDirectory);
var curDirectoryWithBin = curDirectory + "\\bin";
REngine.SetEnvironmentVariables(curDirectoryWithBin, curDirectory);
var rPath = curDirectory + "\\bin\\R.dll";
_rEng = REngine.GetInstance(rPath, true, null, null);
Note (for the good of the order) : the first parameter to REngine.SetEnvironmentVariables is not the "system path" but rather the path to R's bin directory (I missed that or assumed otherwise in the documentation).Now working on the Azure piece and will post an update today or tomorrow if there's progress.
Best,
jbt