[R] Calling R functions from C++ under VS2005
Dirk Eddelbuettel
edd at debian.org
Thu Dec 22 17:12:36 CET 2011
On 22 December 2011 at 15:25, Jawad Elomari wrote:
| I'm trying to call some of R's statistical functions within my C++
| code, developed under VS2005, but I can't seem to find out how to do
i) As has been stated fairly frequently, R itself does not build under
VS* making the linking of C code hard-but-possible and C++ code
impossible (as function header information is not standardized).
| it. I tried RInside and Rcpp, but they either don't work on Windows or
| with VS.
ii) Both Rcpp and RInside work perfectly well on Windows, given the standard
Windows toolchain. (RInside did have a bug but this is now fixed.)
The Rcpp FAQ has more to say about VS* (ie that you cannot expect this
to work if R itself can't work with the compiler)
iii) If you _must_ use VS$whatever then your best bet may be looser coupling
via networking and using Rserve.
If you can switch compilers then Rcpp / RInside can be of interest; and the
rest of the R API is also at your disposal.
Hope this helps, Dirk
| Is there a way to do this?
|
| Appreciate the help.
|
| Regards,
|
| ______________________________________________
| R-help at r-project.org mailing list
| https://stat.ethz.ch/mailman/listinfo/r-help
| PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
| and provide commented, minimal, self-contained, reproducible code.
--
"Outside of a dog, a book is a man's best friend. Inside of a dog, it is too
dark to read." -- Groucho Marx
More information about the R-help
mailing list