Relative Content

Tag Archive for rsplitsegmentation-faultfatal-errorterra

terra::split | R session aborts when splitting polygon fatal error

When trying to split a polygon R runs into a fatal error and aborts. This happens when using R Studio and R on itself. I wrote the code on an earlier version of R on a different machine (also a mac), but have no access to it currently. This happened when I tried to run the code on my current machine. The code is part of a function, which worked fine on the other machine.
I was not able to find a solution. Somewhere it was recommended to reinstall the packages and dependencies and to update R and R Studio to their latest version, which I did. But it did not help.
The raster on which the vector data is based on is only about 60MB, should not be the problem, that it is too large.