[Rd] Using STRING_PTR in a package now produces a WARNING in R-devel

iuke-tier@ey m@iii@g oii uiow@@edu iuke-tier@ey m@iii@g oii uiow@@edu
Tue Nov 11 22:52:43 CET 2025


R CMD check now produceS a WARNING if a package uses STRING_PTR. If
your use of the pointer is read-only then you can call STRING_PTR_RO
instead.  If your code is writing to the string data then you will
need to change your code. The only supported way to modify string data
is to use SET_STRING_ELT. This restriction is necessary to preserve
the integrity of the memory management system.

Best,

luke

-- 
Luke Tierney
Ralph E. Wareham Professor of Mathematical Sciences
University of Iowa                  Phone:             319-335-3386
Department of Statistics and        Fax:               319-335-3017
    Actuarial Science
241 Schaeffer Hall                  email:   luke-tierney using uiowa.edu
Iowa City, IA 52242                 WWW:  http://www.stat.uiowa.edu



More information about the R-devel mailing list