I want to develop application using R statistical computing and C# project. To have R Environment it is necessary to install the R-2.15.1-win.exe which will give me
native DLLs installed with R environment.
Is there any way to have R Environment without doing any setup. i tried the below ways to get it work, but not happening
1) i copied all the dlls which comes with R-2.15.1 setup from "C:\Program Files\R\R-2.15.1\bin" to my project location and uninstalled the "R". but when i tried to execute the code, it is throwing exception
public static void Main(string args)
REngine engine = REngine.GetInstanceFromID("RDotNet");
string stFirsValue = "30/40";
NumericVector x = engine.EagerEvaluate(stFirsValue).AsNumeric();
Console.Write("FirstValue: " + stFirsValue + " = " + x.ToString());
catch (Exception objExp)
the second line throw "Object reference not set to the instance of an object."
2) i copied the whole files from "C:\Program Files\R\R-2.15.1" which include all bin and lib files to my location and used that path for REngine.SetDllDirectory method. but still it was not working.
how can do a manual installation, without running any setup. and create R environment into my project. so that i communicate with "R". registering R's COM DLL directly and start using them.
thanks in advance