[R-pkg-devel] DLL requires the use of native symbols

Duncan Murdoch murdoch@dunc@n @end|ng |rom gm@||@com
Mon Mar 20 17:46:09 CET 2023


I found three such calls in a quick search.  The first is here:

https://github.com/gdkrmr/coRanking/blob/3656bc0cd3032a650be8c8783414a1e62e419437/R/coranking_internals.R#L20

Duncan Murdoch

On 20/03/2023 12:43 p.m., Duncan Murdoch wrote:
> It appears that you have some uses of .Call() where you are passing a
> character variable as the first argument, instead of registering the
> entry point and passing the variable containing the registration
> information.
> 
>   From your second link, it looks like Rcpp has some special way to
> handle entry point registration.  I'm not familiar with that, I use the
> basic way described in Writing R Extensions, section 5.4 "Registering
> native routines".
> 
> Duncan Murdoch
> 
> On 20/03/2023 11:36 a.m., Guido Kraemer wrote:
>>
>> I am the maintainer of coRanking and got a message about an error, the
>> error can be found here [1]. I can reproduce the error on my own machine
>> with the latest R-devel but don't quite understand what the error means
>> and how I can fix it. A search leads to an issue in Rcpp [2] where the
>> characters in .Call are replaced by  symbols (apostrophe to backtick).
>> When I do this, I get an error when building the vignette:
>>
>>    > NULL value passed as symbol address
>>
>> What am I doing wrong and how do I fix the error?
>>
>> Best
>>
>> Guido
>>
>>
>> [1]
>> https://www.r-project.org/nosvn/R.check/r-devel-linux-x86_64-debian-gcc/coRanking-00check.html
>>
>> [2] https://github.com/RcppCore/Rcpp/issues/1255
>>
>>
>> ______________________________________________
>> R-package-devel using r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-package-devel
>



More information about the R-package-devel mailing list