Skip to content
Prev 2706 / 10988 Next

[Rcpp-devel] Overloaded constructors?

Did you look at the documentation for Rcpp modules, as Dirk hinted at?
 If you can use modules for your needs, look at section 2.2 here
http://cran.r-project.org/web/packages/Rcpp/vignettes/Rcpp-modules.pdf.
 This is more or less what you're looking for, no?
The second point above (function pointers to c++ functions) should
make it into the quickref when i have some time.  I posted a bit about
this on the list last week -- i'm thinking about something like a c++
apply() function using rcpp's row/column magic as a super-simple
example.

If you can write up a simple example of the first point, i'd be happy
to copy-edit it into the quickref.

Christian