search for: rcpp_regist

Displaying 1 result from an estimated 1 matches for "rcpp_regist".

Did you mean: rcpp_register
2013 Nov 16
2
Linking to native routines in other packages
...re compiling Rcpp, we just have a declaration of the function, which is then defined in any of our .cpp files. - when we are using Rcpp from another package, we are retrieving the function https://github.com/RcppCore/Rcpp/blob/master/src/Rcpp_init.cpp where the functions are registered with the RCPP_REGISTER macro. This way of using it moves all the logic to the package exposing its functions. I find this nicer to use than other tactics I've seen, such as the sub technique from Matrix ... -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30