[Rcpp-devel] S3 methods with cppFunction/sourceCpp

Christian Gunning xian at unm.edu
Thu Dec 27 22:54:16 CET 2012

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?


A man, a plan, a cat, a ham, a yak, a yam, a hat, a canal – Panama!

More information about the Rcpp-devel mailing list