-
Notifications
You must be signed in to change notification settings - Fork 53
Found non-API call to R: ‘R_NamespaceRegistry’ #487
Copy link
Copy link
Closed
Description
Thanks for your work on cpp11!
I recently got a note on CRAN checks in one of my packages that uses cpp11:
https://www.r-project.org/nosvn/R.check/r-devel-linux-x86_64-fedora-clang/blosc-00check.html
It says:
File ‘blosc/libs/blosc.so’:
Found non-API call to R: ‘R_NamespaceRegistry’
Compiled code should not call non-API entry points in R.
As my code doesn't use this registry directly, I suspect that it originates from its cpp11 dependency. More specifically, I'm using auto utf8ToInt = package("base")["utf8ToInt"]; in my code, which is eventually using:
cpp11/inst/include/cpp11/function.hpp
Line 70 in adfb240
| return safe[detail::r_env_get](R_NamespaceRegistry, name_sexp); |
Is it possible to update this function, such that it only uses entry points in C that are allowed on CRAN? Or should I address this downstream in my package?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels