<font face="arial,helvetica,sans-serif"><br></font><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>Unfortunately, at the moment modules and attributes don't play together. The attributes feature used to be built on top of modules, but this caused issues on windows.</div>
<br>
One thing we could perhaps negociate with JJ is recognition of the export attribute on module. Something like :<br>
<br>
// [[Rcpp::export]]<br>
RCPP_MODULE(SimpleModule) {<br>
class_<Simple>( "Simple")<br>
.constructor<double>()<br>
.const_method("times", &Simple::times)<br>
;<br>
}<br>
<br>
or perhaps even just recognizing the RCPP_MODULE declaration.<br></blockquote><div><br></div><div>Rev 4272 adds support for recognizing RCPP_MODULE declarations in sourceCpp. Any module defined in the file will be automatically loaded using a call to Module (the name will be the same as the name specified in RCPP_MODULE).</div>
<div><br></div><div>J.J.</div><div> </div></div>