This project is read-only.

Using R.Net without installing R

Aug 26, 2014 at 12:19 PM
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!!!
Aug 26, 2014 at 10:59 PM
Where most users would use the following to try to automagically initialize the engine:
var engine = REngine.GetInstance();
You can override the behavior with the optional arguments rPath, and possibly rHome
var engine = REngine.GetInstance();
Aug 27, 2014 at 9: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?

Aug 28, 2014 at 12:37 AM
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.