[Rcpp-devel] How to use https://github.com/jjallaire/rcpp-gallery/blob/gh-pages/src/2013-01-05-r-function-from-c++.cpp?

Dirk Eddelbuettel edd at debian.org
Fri May 24 13:16:29 CEST 2013

On 24 May 2013 at 05:05, Peng Yu wrote:
| > Perhaps you can try updating your Rcpp? The latest version is 0.10.3. But I
| > don't know if that's the reason why sourceCpp is not in your Rcpp library.
| Yes. I have some old installation which prevent the new installation to be used.

That is your problem -- "Rcpp attributes" appeared with 0.10.0, and were
extended in 0.10.1 and 0.10.2.

If you are forced to use an older version, stick to using the inline package
and its cxxfunction(). There is ample documentation in many places.


Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com

More information about the Rcpp-devel mailing list