New CRAN warnings on STRING_PTR and VECTOR_PTR (original) (raw)

Running a recent r-devel:

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.

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