<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">experimenting, i ran into this problem that i haven't seen documented:<br>
if a formal argument to an [[Rcpp::export]] function *begins* with an<br>
underscore. sourceCpp() ends in failure.  with the example below,<br>
replacing "_parms" with "parms" makes sourceCpp() happy.  in the error<br>
case, the message is:<br></blockquote><div><br></div><div>That's because R itself doesn't allow object names to start with "_". Since sourceCpp is simply transposing all C++ names into R this naturally fails. See: <a href="http://cran.r-project.org/doc/manuals/R-intro.html#R-commands_003b-case-sensitivity-etc">http://cran.r-project.org/doc/manuals/R-intro.html#R-commands_003b-case-sensitivity-etc</a></div>
<div><br></div><div><br></div><div><br></div></div>