Skip to content
Prev 18963 / 63424 Next

Using STL containers in R/C++

Andrew Finley <finle014 <at> umn.edu> writes:
RQuantLib, a wrapper to the QuantLib libraries, has indirect exposure to Boost.
[ QuantLib uses Boost smart pointers, and unit testing. ]  However, I have kept 
the actual R-to-QuantLib interface very 'plain C' to keep it simple and sane. 

Dominick Samperi wrote a Rcpp.{hpp,cpp} class for C++ to R interface that is 
used in RQuantLib. Dominick was musing about releasing this stand-alone to CRAN
as well, but I don't think it has happened.
In my book, yes.  It would be nice to have a few nice, and documented, examples.
I don't see why. Effectively, R goes where gcc/g++ go so if you make sure you 
stay within the bounds of g++. It will create an external dependency, as those
do confuse users from time to time (c.f. the r-help archives).
If you have a bug, yes. If you don't, you don't. The R Extensions manual has a 
few tips on the matter.

Cheers, Dirk