[Rcpp-devel] What are RcppExport, BEGIN_RCPP and END_RCPP?

Slava Razbash slava.razbash at gmail.com
Tue Oct 25 08:01:31 CEST 2011


Hello,

What are RcppExport, BEGIN_RCPP and END_RCPP?
For example:
RccpExport SEXP myFunction( SEXP myVar_s) {
BEGIN_RCPP

END_RCPP
}

Are they related to extern "C" { } ?
Further, suppose that I am writing a function that uses both Rcpp and
direct access to the inside the SEXP objects, do I need to use extern
"C" { } or has Rcpp done it for me?

Best Regards,

Slava


More information about the Rcpp-devel mailing list