I have to run hours-long simulations and sometimes I left my notebook unplugged from the energy cable. This makes it to get into sleep mode after 15 min (user configuration; which is something I would not like to change).
Most of the times when I turn the notebook on again (from the sleep mode), the simulation or the calculation crashes, or even the RStudio crashes completely. But sometimes RStudio continues processing all the commands as nothing happened.
What happens with the environment, working functions, etc, when the notebook goes into sleeping mode?