[R] R functionality from within C# .NET
pau.carre at gmail.com
Tue Mar 21 08:46:16 CET 2006
Sometimes it is possible to copy-and-paste the R source code into your
project. Some R code is actually C code so you could create a dll or
something like that.
I did it for a Linux C++ project and it was not too dificult. You
should open MY_R_FUNCTION.R file and then you will see how R calls the
If your project is commercial you should take a look to the licence.
If you do not find the way to integrate your project with R, the best
way I found for communication is by sockets. Do not try to run R each
time you want R to execute something, as it will be very slow.
2006/3/21, tofesi at web.de <tofesi at web.de>:
> Dear all (especially R-Win users),
> I'm looking for a good way to use R functionality from within a C# application. One way would be via (D)COM, but I would prefer a more "direct" solution: My main concern is to ship all necessary files in one easy-to-install package, so that users do not need to download and install R separately. Any help, advice, or example code would be greatly appreciated (I am using Visual C#).
> I could not find anything related to this issue in the R-Win FAQ, and also not on R-help.
> There are expensive commercial numerical/statistical libraries for use in .NET (e.g. http://www.extremeoptimization.com/, http://www.centerspace.net). Alas, as expected, they provide _much_ less functionality than R. So I wonder whether any other people have been successful in using R in their .NET projects, or if anybody has ideas how to best make it work (I'd be open to invest some time, possibly also with other interested folks).
> Thanks for the good work,
> R-help at stat.math.ethz.ch mailing list
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
More information about the R-help