<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Dec 31, 2013 at 1:45 PM, JJ Allaire <span dir="ltr"><<a href="mailto:jj.allaire@gmail.com" target="_blank">jj.allaire@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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></div></div></blockquote><div><br></div><div>Thanks. Thought I had tried it both ways, but I'll take your word for it. </div>

<div><br></div><div>THK</div></div><br clear="all"><div><br></div>-- <br>Timothy H. Keitt<br><a href="http://www.keittlab.org/" target="_blank">http://www.keittlab.org/</a><br>
</div></div>