Is there a way to find out what happened that led to the failure? I tried to run the script several times now, and it seems to crash after running random .
This is what I get (studio R): 
As you can see, this will not help.
As for memory: I'm trying to build a matrix with 34 million records. I monitored memory usage at runtime and came to the conclusion that there was not a large increase in memory. The memory was constant - about 580 mb.
The accident occurs only in studio R. Not in the interpreter R.
source share