Using R.Net without installing R

 rmangrey8 Aug 26, 2014 at 11:19 AM I know this is possible, but I used this library a long time ago and the new version doesn't seem to have the SetDllDirectory method. This new GetInstance() also tends to just look for the installed instance - how can I override this? Basically assume I have not installed R but all the R dlls in C:/R What method and override do I need to start rEngine so it works? Thank you!!! jperraud Developer Aug 26, 2014 at 9:59 PM Where most users would use the following to try to automagically initialize the engine: REngine.SetEnvironmentVariables(); var engine = REngine.GetInstance();  You can override the behavior with the optional arguments rPath, and possibly rHome REngine.SetEnvironmentVariables(rPath=@"c:\my\peculiar\path\to\R\bin\x64"); var engine = REngine.GetInstance();  rmangrey8 Aug 27, 2014 at 8:10 AM Ok great - Ill try that now. But what is rHome used for? I understand the rPath is set to find the R files, but what is the rHome used for? I mean why would you need to set that? Doesn't rPath already do what's needed in picking up the R directory? Thanks jperraud Developer Aug 27, 2014 at 11:37 PM Yes, R.NET will try to guess R_HOME from rPath, and you do not need to specify rHome. There are circumstances where one wants/needs to explicitly specify it however, so the option is here.