Skip to content
Prev 5874 / 10988 Next

[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

Thread (15 messages)

Peng Yu How to put the code 2013-01-05-r-function-from-c++.cpp in the src/ directory of a package? May 24 Dirk Eddelbuettel How to put the code 2013-01-05-r-function-from-c++.cpp in the src/ directory of a package? May 24 Peng Yu How to put the code 2013-01-05-r-function-from-c++.cpp in the src/ directory of a package? May 24 Dirk Eddelbuettel How to put the code 2013-01-05-r-function-from-c++.cpp in the src/ directory of a package? May 24 Peng Yu How to put the code 2013-01-05-r-function-from-c++.cpp in the src/ directory of a package? May 25 Dirk Eddelbuettel How to put the code 2013-01-05-r-function-from-c++.cpp in the src/ directory of a package? May 25 Peng Yu How to put the code 2013-01-05-r-function-from-c++.cpp in the src/ directory of a package? May 25 Dirk Eddelbuettel How to put the code 2013-01-05-r-function-from-c++.cpp in the src/ directory of a package? May 25 Dirk Eddelbuettel How to put the code 2013-01-05-r-function-from-c++.cpp in the src/ directory of a package? May 25 Peng Yu How to put the code 2013-01-05-r-function-from-c++.cpp in the src/ directory of a package? May 25 Dirk Eddelbuettel How to put the code 2013-01-05-r-function-from-c++.cpp in the src/ directory of a package? May 25 Peng Yu How to put the code 2013-01-05-r-function-from-c++.cpp in the src/ directory of a package? May 26 Dirk Eddelbuettel How to put the code 2013-01-05-r-function-from-c++.cpp in the src/ directory of a package? May 26 Peng Yu How to put the code 2013-01-05-r-function-from-c++.cpp in the src/ directory of a package? May 26 Dirk Eddelbuettel How to put the code 2013-01-05-r-function-from-c++.cpp in the src/ directory of a package? May 26