Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New CRAN warnings on STRING_PTR and VECTOR_PTR #1316

Closed
eddelbuettel opened this issue Jul 7, 2024 · 2 comments · Fixed by #1317
Closed

New CRAN warnings on STRING_PTR and VECTOR_PTR #1316

eddelbuettel opened this issue Jul 7, 2024 · 2 comments · Fixed by #1317

Comments

@eddelbuettel
Copy link
Member

eddelbuettel commented Jul 7, 2024

Running a recent r-devel:

  • checking compiled code ... NOTE
    File ‘Rcpp/libs/Rcpp.so’:
    Found non-API calls to R: ‘STRING_PTR’, ‘VECTOR_PTR’

Compiled code should not call non-API entry points in R.

See ‘Writing portable packages’ in the ‘Writing R Extensions’ manual,
and section ‘Moving into C API compliance’ for issues with the use of non-API entry points.

  • checking sizes of PDF files under ‘inst/doc’ ... OK

The new section Moving into C API compliance mentions read-only variants STRING_PTR_RO and VECTOR_PTR_RO which look promising.

@kevinushey
Copy link
Contributor

I can take a gander.

@eddelbuettel
Copy link
Member Author

That would be sweet. I am a little tied up right now but should have time a little later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants