RStudio closing when Windows PC

RStudio (v 1.4.1103) closes when my PC (Windows 10) goes to sleep. This is annoying because the PC may go to sleep while I'm waiting for a script to finish and then I lose my work. Suggestions?
This is similar to a post in 2018.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.