Re: [R-sig-Geo] Attempt to set index in SET_STRING_ELT

2024-02-26 Thread Josiah Parry
It sounds as if you might be using integers to index some vector. Integers in R are 32 bit which are limited to a maximum value of 214783647 which is actually reserved for NA values. Anything larger than that will overflow. On Mon, Feb 26, 2024 at 19:41 Jochen Albrecht wrote: > I am getting the

[R-sig-Geo] Attempt to set index in SET_STRING_ELT

2024-02-26 Thread Jochen Albrecht
I am getting the same kind of error working with stplanr (using function route_dodgr) as well as osmdata (using function osmdata_sf), which lets me assume that the latter is the culprit. The error is "attempt to set index 2786142150/2786142150 in SET_STRING_ELT". The index number is a little