RStudio doesn't save installed packages after one pause/resume cycle
I've noticed that when I pause and resume an RStudio environment, it starts up with the packages I've installed and the last state of my R session - but only the very first time I resume. If I make changes, install new packages, etc., then pause and resume again, the R session has lost all my progress and takes me back to the very first session. Files and notebooks are saved, but not installed packages and data loaded in my R session.
My preferred behavior would actually be for package installs to be saved, but for R to start with an empty environment each time. If it's going to load data, it should be the last data I was using, not very old data. This behavior makes errors more likely since I have to remember to manually wipe my environment and re-run code to get back to where I was.
Comments
1 comment
Hi Stephanie,
Thanks for writing in! As it turns out, we did see an issue with our RStudio environments not keeping installed packages. We've recently deployed a fix to the system that should address it. Could you please delete the Cloud Environment and create a new one. Note: you won't have to delete the Persistent Disk.
After that, you may have to install the packages one more time, but they should stay after a pause and restart after that.
Please give that a try and let me know if you have any questions.
Best,
Josh
Please sign in to leave a comment.