[Rcpp-devel] dataptr / char_get_string_elt not provided by package 'Rcpp'

Dirk Eddelbuettel edd at debian.org
Wed Feb 5 22:15:11 CET 2014


On 5 February 2014 at 15:48, Avraham Adler wrote:
| I had the same issue (RNGScope) and what worked for me (besides Dirk's clear
| explanations which I somehow missed) was to run Rcpp.package.skeleton() and
| compare what changed, which is exactly what Dirk mentioned above (the changes
| to NAMESPACE and DESCRIPTION). LinkingTo is still necessary (together with
| Imports) I believe (at least in my case).

Yes. LinkingTo: deals with how we find headers.  

The change for Rcpp 0.11.0 is how we no longer need to link, but at the same
time have to make sure Rcpp is initialized correctly -- which is what the
importFrom(Rcpp,evalCpp) in NAMESPACE does, which in turn requires an
Imports: in DESCRIPTION

Checking the files created Rcpp.package.skeleton() output is a clever hack.
Real programmers don't read documentation, but work from working code.  

Good thing I updated the skeleton generator in time :)

Dirk

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


More information about the Rcpp-devel mailing list