<div dir="ltr">I am wondering if anyone has considered the following:<div><br></div><div>// [[Rcpp::include(header.h, extC-bool, namesp-optional)]]</div><div><br></div><div>to include header.h in RcppExports.cpp (optionally wrapping it with extern "C" and putting it in a namespace)</div>

<div><br></div><div>and</div><div><br></div><div>// [[Rcpp::wrap(myType myFunc(const myType& x))]]</div><div><br></div><div>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.</div>

<div><br></div><div>THK</div><div><div><br></div>-- <br><div dir="ltr"><a href="http://www.keittlab.org/" target="_blank">http://www.keittlab.org/</a></div>
</div></div>