Skip to content
Prev 5024 / 10988 Next

[Rcpp-devel] S3 methods with cppFunction/sourceCpp

I just realized that cppFunction can't natively build S3 functions, since
 fun.class isn't valid C++ function name.  I'm wondering if adding and
 S3class argument (default value = FALSE, otherwise class name as
 character) to cppFunction makes sense -- all that's needed is
 appending the class name to the function name, correct?  The downside,
as I see it, is that it's not so simple for sourceCpp/attributes (at
least I don't understand them).

Obviously, this is a minor issue. Is anyone else likely to hit this?

best,
Christian