R mapping (C stack usage 7971616 is too close to the limit)

There is not that much that can be done about C stack usage from within R; you can monitor it via Cstack_info() but that is about it.

I suspect that there is something wrong about the object you are plotting - what class is it, and what was its origin? It does not come from {sf}.

In order to reduce the load on your session you may consider one of two things:

  • print(st_geometry(world)) = just the boundaries (without data)
  • print(world, max.plot = 1) = just the first data item from world dataframe (whatever that is)