[Rcpp-devel] examples on Extending Rcpp::as

Dirk Eddelbuettel edd at debian.org
Tue May 8 01:37:47 CEST 2012

Hi Jiqiang,

On 7 May 2012 at 18:23, Jiqiang Guo wrote:
| From http://cran.r-project.org/web/packages/Rcpp/vignettes/Rcpp-extending.pdf,
| we know that we could extend as.  I would like to create an user-defined
| class  instance from an SEXP (say a list in R).  Where could I find more examples
| on this usage?  

As far as written documentation goes, that is the one dedicated vignette.

As far as packages go, we use this method in RcppArmadillo, RcppEigen,
RcppGSL, RcppBDT, ... but that may well be 'too complicated'.

I would stick with the vignette and try to work up from small examples.


R/Finance 2012 Conference on May 11 and 12, 2012 at UIC in Chicago, IL
See agenda, registration details and more at http://www.RinFinance.com

More information about the Rcpp-devel mailing list