[Rcpp-devel] How to put the code 2013-01-05-r-function-from-c++.cpp in the src/ directory of a package?
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