You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The attributes vignette describes how to name a function using // [[Rcpp:export(name="something.dot")]]
allowing use of . prefix or S3 methods. However, when // [[Rcpp::interfaces(r, cpp)]]
is used, the generated header file uses the exported name (perhaps correctly), but when an S3 method is exported, the header includes things like:
inline List rcpp.dot() {
typedef SEXP(*Ptr_rcpp.dot)();
which don't compile.
To replicate:
Rcpp.package.skeleton()
Then change the attributes in src/rcpp_hello_world.cpp to: