[Rcpp-devel] Thoughts on attributes for wrapping

Tim Keitt tkeitt at gmail.com
Fri Jan 3 03:48:50 CET 2014

I am wondering if anyone has considered the following:

// [[Rcpp::include(header.h, extC-bool, namesp-optional)]]

to include header.h in RcppExports.cpp (optionally wrapping it with extern
"C" and putting it in a namespace)


// [[Rcpp::wrap(myType myFunc(const myType& x))]]

which would do exactly what Rcpp::export does (generates a .Call-able
symbol + R function), but omits the prototype for myFunc in
RcppExports.cpp. That would allow the function and type definitions to
appear in header.h.


PS Sorry if this a double post -- I think I send the first one from my
non-subscribed address and it bounced. T.

Timothy H. Keitt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20140102/2c451921/attachment-0001.html>

More information about the Rcpp-devel mailing list