Skip to content

[Rcpp-devel] NULL value passed as symbol address with all C++functions

2 messages · Dirk Eddelbuettel, Barth Riley

#
On 7 November 2018 at 22:53, Barth Riley wrote:
| @Dirk: I didn?t want to overwhelm those on the list with tons of code. Below is the full source for the function. What else would you need to see? 
| 
| After clearing my environment variables, I am now getting the following error:
| 
| Error in logit(30, 0, 100) : 
|   function 'enterRNGScope' not provided by package 'Rcpp'

Someting more fundamental may be out of line as that is _of course_ part of
Rcpp and provided. Maybe you don't importFrom(Rcpp, evalCpp) in NAMESPACE or
declare the dyn.lib wrong.
 
| I do have some roxygen documentation errors in my package? Might this have an effect in producing the error?

No, just check CRAN -- hundreds of Rcpp packages use roxygen.

Dirk
#
In my ?stupid? (minimal) project, my namespace looks as follows:

useDynLib(StupidRCPP, .registration=TRUE)
exportPattern("^[[:alpha:]]+")
importFrom(Rcpp, evalCpp)

In my main project I include Rcpp in an import() statement in NAMESPACE.

One thing I?m noticing with the minimal project is that I can build it without errors and access functions from the package but  devtools::check() reports syntax errors?though these errors appear to be from an old version of the code (it has been quite a headache manually deleting all of the files in .Rcheck, RprojUser, and the Rtmp? folders.

Barth
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20181108/94127004/attachment.html>