Page 1 of 1
R and C++,C# etc.
Posted: January 11th, 2008, 2:28 pm
by balajian
Is it possible to call R methods from languages like c++,C# etc. ?
R and C++,C# etc.
Posted: January 11th, 2008, 3:47 pm
by msperlin
QuoteOriginally posted by: balajianIs it possible to call R methods from languages like c++,C# etc. ?I know that you can run a R routine by calling them from a C++, but, for using R functions directly in C++ I'm not sure if exists a link for that.One trick you can use for artificially use R functions at C++ is to use .txt (or .csv) files for exchange data between a R routine and C++. That way you can use data from C++, input it at a R function and get the output. But, if you're dealing with a large scale system, that possibly a bad solution..
R and C++,C# etc.
Posted: January 11th, 2008, 5:07 pm
by eredhuin
R is scriptable. Very easy.That means msperlin's text idea works just fine, as long as you are comfortable in a unix-style world of command lines and text files.If you're looking for windows automation, check the FAQ, q 2.18:R FAQ
R and C++,C# etc.
Posted: January 13th, 2008, 4:08 pm
by rwinston
It's very easy to call the R API directly from C/C++ - a lot of R extensions do this. Just include the relevant R header files. All the information you need is in the "Writing R Extensions" document on CRAN.
R and C++,C# etc.
Posted: February 12th, 2008, 4:37 pm
by dandare
Here you go: