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 | [email protected] | http://dirk.eddelbuettel.com _______________________________________________ Rcpp-devel mailing list [email protected] https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel
