[Rcpp-devel] How to put the code 2013-01-05-r-function-from-c++.cpp in the src/ directory of a package?
Peng Yu
pengyu.ut at gmail.com
Fri May 24 12:17:21 CEST 2013
Hi,
I want to put the C++ function "callFunction" in a cpp file in src/
directory of an R package and use R (in R/) to call such a function.
Because I want to avoid the compilation need each time to use the
function. Could anybody show me an example how to do so? Thanks.
https://github.com/jjallaire/rcpp-gallery/blob/gh-pages/src/2013-01-05-r-function-from-c++.cpp
--
Regards,
Peng
More information about the Rcpp-devel
mailing list