Where most users would use the following to try to automagically initialize the engine:
You can override the behavior with the optional arguments rPath, and possibly rHome
REngine.SetEnvironmentVariables();
var engine = REngine.GetInstance();
REngine.SetEnvironmentVariables(rPath=@"c:\my\peculiar\path\to\R\bin\x64"); var engine = REngine.GetInstance();