FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Found non-API call to R: ‘R_NamespaceRegistry’ · Issue #487 · r-lib/cpp11 · GitHub

/ cpp11 Public

Found non-API call to R: ‘R_NamespaceRegistry’ #487

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:

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL