Skip to content

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

@pepijn-devries

Description

@pepijn-devries

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?

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