Writing R code in C# and Executing

Feb 15, 2014 at 6:00 PM
Hi Team,

I am working on various algorithms in R Studio. I need to execute those algorithms from my C# code using R.

how do I write the R code in C# and Execute.
Can you provide any example for this.


Regards,
Yuvaraj
Feb 15, 2014 at 6:21 PM
See the documentation tab, in particular:

engine.Evaluate("source('c:/src/path/to/myscript.r')");
Feb 15, 2014 at 6:35 PM
Thanks your reply.

In my case I don't have any static data to be written in the .r file.

I need to retrieve the data from my Database.
later send the data and the .r script to R engine and do the execution.