[Rcpp-devel] Are there any C++ function name restrictions?
Hadley Wickham
h.wickham at gmail.com
Wed May 29 15:47:17 CEST 2013
> I generated a new Rccp package and changed the hello_world function.
> The attached Rcpp Code stops working if I rename the method
> "rcpp_hello_world" to
> "conditionalProbabilityTables". The error I get is:
> "conditionalProbabilityTables" not available for .Call() for package "PhyloFun"
>
> I swear the only thing I changed was the function name. Hence my question:
> Are there any restrictions I am unaware of?
How are you rebuilding the code? Did you use compileAttributes, or the
short cuts in RStudio or devtools?
If literally the only thing you did was change the C++ code, it won't work.
Hadley
--
Chief Scientist, RStudio
http://had.co.nz/
More information about the Rcpp-devel
mailing list