>
> experimenting, i ran into this problem that i haven't seen documented:
> if a formal argument to an [[Rcpp::export]] function *begins* with an
> underscore. sourceCpp() ends in failure.  with the example below,
> replacing "_parms" with "parms" makes sourceCpp() happy.  in the error
> case, the message is:
>

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:
http://cran.r-project.org/doc/manuals/R-intro.html#R-commands_003b-case-sensitivity-etc
_______________________________________________
Rcpp-devel mailing list
[email protected]
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

Reply via email to