RcppCore / Rcpp

Seamless R and C++ Integration
https://www.rcpp.org
GNU General Public License v2.0
734 stars 211 forks source link

New CRAN warnings on STRING_PTR and VECTOR_PTR #1316

Closed eddelbuettel closed 2 months ago

eddelbuettel commented 3 months ago

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 commented 3 months ago

I can take a gander.

eddelbuettel commented 3 months ago

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