Skip to content
Prev 8128 / 12125 Next

[R-pkg-devel] moving from C to C++ with Rcpp in R package

Thank you Ivan and Dirk for your messages. I tried to follow your advice (modifying the src/init.c file by hand to add the things from the C++ function), but the function R_init_ade4 cannot be defined in both init.c and RcppExports.cpp. So I still have the same problem ("object '_ade4_RVrandtestCpp' not found").

As suggested by Ivan Krylov, I have created a new branch of the ade4 package (called ade4-Rcpp on github: https://github.com/sdray/ade4/tree/ade4-Rcpp) with the modifications listed here.

I am also cc-ing this message to rcpp-devel that may be more suitable for followups.

Thank you again for your help,
Jean