File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed
Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change 1+ 2019-12-05 Dirk Eddelbuettel <edd@debian.org>
2+
3+ * vignettes/rmd/Rcpp-FAQ.Rmd (Rcpp): Add entry about "'dataptr' (or
4+ 'enterRNGScope') not provided by Rcpp" recommending proper importFrom
5+
162019-12-03 Dirk Eddelbuettel <edd@debian.org>
27
38 * docker/ci/Dockerfile: Lighter builds as fewer Suggests:
Original file line number Diff line number Diff line change @@ -1754,3 +1754,14 @@ Rcpp Modules \citep{CRAN:Rcpp:Modules}. Some more background on the linking
17541754requirement is [ in this SO
17551755question] ( https://stackoverflow.com/questions/2424836/exceptions-are-not-caught-in-gcc-program ) .
17561756
1757+ ## My package errors with "'dataptr' not provided by Rcpp"
1758+
1759+ If you see tests of your package fail with an error '... not provided by
1760+ Rcpp', frequently pointing at either ` dataptr ` or ` enterRNGScope ` , then the
1761+ \pkg{Rcpp} package may not have been initialized correctly. For your
1762+ package, it is generally recommended to have both ` Imports: Rcpp ` and
1763+ ` LinkingTo: Rcpp ` in the file ` DESCRIPTION ` combined with an explicit
1764+ ` importFrom("Rcpp", "evalCpp") ` in the file ` NAMESPACE ` . Doing so ensures
1765+ that this symbol is registered when your package is loaded by R, and as a
1766+ side-effect certain other \pkg{Rcpp} function identifiers will also be
1767+ resolved properly.
You can’t perform that action at this time.
0 commit comments