Quantcast
Channel: R.NET
Viewing all articles
Browse latest Browse all 1634

New Post: Communicate or use R environment in C# project without installation

$
0
0
Sendil wrote:
Hi  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.SetDllDirectory(@"G:\R.Net\Binaries\x64"); REngine.CreateInstance("RDotNet"); REngine engine = REngine.GetInstanceFromID("RDotNet"); string stFirsValue = "30/40"; try { NumericVector x = engine.EagerEvaluate(stFirsValue).AsNumeric(); Console.Write("FirstValue: " + stFirsValue + " = " + x[0].ToString()); } catch (Exception objExp) { Console.Write(objExp.Message); } Console.Read(); }        REngine.CreateInstance("RDotNet");  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. please suggest  thanks in advance sendil  
Hi Sendil,
I have a similar requirement and exploring Rdot net as an option. I am very new to RdotNetect and struggling to get some know hows to build my C# proj.

I need to call R scripts from my C#/ASP.net page connected to ms sql server via RDotNet library and build a dashboard for my application. I am looking for some step by step guidance to achieve the same. I have tried to refer the articles available on internet but somehow, did not get the correct path. please help me with some suggestions.
Sincere thanks in advance

Viewing all articles
Browse latest Browse all 1634

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>