I am performing simulations as part of an analysis.
The code used for the simulation is quite complex so I made a package for it.
All of the functions seemed to work happily until I made the computer run a simulation that lasts for about 9 hours.
For some reason, Rstudio crashes after about 3 hours or roughly 30 simulations. When I restart the simulation process (It is designed to continue from the last saved simulation) it carries on as if nothing had happened then crashes again 30-40 simulations later. Usually, the third round is enough to get it to complete.
This problem means it takes forever to perform the 100 simulations I need for each setting, and it means I can't just leave the computer running and let it go through a number of simulation settings
Normally if there is a problem I would look at the error messages and possibly post a reprex to SO. However as this crash is related to Rstudio itself I am not sure what to do.
I know there is a crash analysis button but it contains lots of information and no obvious way to dump it into a file.
How can I get enough information to ask a question that is actually answerable?
I am using
Ubuntu 18.04 LTS (Bionic Beaver),
Rstudio Version 1.1.383
R version 3.4.4 (2018-03-15) -- "Someone to Lean On"