Skip to content
Prev 10332 / 10988 Next

[Rcpp-devel] class methods and R_RegisterCCallable

I believe Dirk is correct in saying the traditional mechanism won't work 
for non-static member functions, but if the C++ code is fully contained 
in header files in 'inst/include', then it's possible to access that 
code from another package since there's no library that one needs to 
link against. I believe that's the mechanism that Rcpp itself uses.

Things get ugly when one tries to link to another package's library. 
I've tried a few experiments with Dirk's help 
(https://github.com/lsilvest/linktest), but haven't found a reliable way 
to make this portable (things break when packages are installed 
pre-compiled).

Leo