[Rcpp-devel] wrap documentation?

Toby Hocking tdhock5 at gmail.com
Sun Apr 26 01:04:58 CEST 2020


Hi, can someone please tell me where the return types of wrap are
documented?

For context, I was looking at the Advanced R chapter on Rcpp
http://adv-r.had.co.nz/Rcpp.html which shows an example of a C++ function
with the Rcpp::exports attribute, that returns a std::map, and I was
wondering how the std::map is returned in R. (I assume this will generate
an RcppExports.cpp which calls wrap on the result) I'm wondering what the
returned SEXP type will be?

For clarification this is more of a question about documentation -- is
there a place where I can find a table/mapping from currently implemented
C++ wrap inputs to returned SEXP types? e.g. NumericVector in C++ ->
numeric vector in R, int in C++ -> integer vector in R, etc

FYI I tried looking in the doxygen/rcpp-devel archives/google and in the
Rcpp inst/include source code, but I did not find the answer.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20200425/e838ed9a/attachment.html>


More information about the Rcpp-devel mailing list