<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div dir="ltr"><div>Am I correct in noting that<br></div><div><br></div><div>// [[Rcpp::export]]</div>

<div>void test(void)</div><div>{</div><div>    // do something</div><div>}</div><div><div><br></div><div>does not generate any code in RcppExports.R?</div></div></div></blockquote><div><br></div><div>The problem occurs because the attributes parser doesn't know what to do with the void argument specification. If you declare the function with no argument specification at all then the function will be handled correctly in RcppExports.R, e.g.</div>
<div><br></div><div><div>// [[Rcpp::export]]</div><div>void foo() {</div><div>  </div><div>}</div></div><div><br></div><div><br></div><div><br></div></div></div></div>