Scripts and dataframes left opened in the previous session are not restored when restarting RStudio (second post)

Hi,

In the latest version of RStudio, working in Windows 10, the Scripts and dataframes left open in the previous session are not restored when restarting RStudio, in spite of having checked the option "Restore previously open source documents at startup" in the Global Options menu. Any ideas of why is this happening? How can I solve it?

I posted this problem a couple of weeks ago but I haven't received any answer

Thanks

Luis

Hi,

In the latest version of RStudio, working in Windows 10, the Scripts and dataframes left opened in the previous session are not restored when restarting RStudio, in spite of having checked the option "Restore previously open source documents at startup" in the Global Options menu. Any ideas of why is this happening? How can I solve it?

Thanks

Luis

To help understand what's going on, here's RStudio's docs on using Projects.

When you are within a project and choose to either Quit, close the project, or open another project the following actions are taken:

  • .RData and/or .Rhistory are written to the project directory (if current options indicate they should be)
  • The list of open source documents is saved (so it can be restored next time the project is opened)
  • Other RStudio settings (as described above) are saved.
  • The R session is terminated.

I suspect there is something going on that is preventing this action from being taken. For example, if I clear all objects from my global environment, and then open .RData, the global environment takes me back to my last project save.

There could be a bunch of ways that could happen. For example not having full write access, and programs that prevent you from updating that file.

Some system Information could be useful as well

System Information:

  • RStudio Edition: (Desktop or Server)
  • RStudio Version:
  • OS Version:
  • R Version:

Thank you very much for your kind response. I have been using RStudio for quite a long time, and I never had this problem.
When not in a project, the workspace, history and the files left opened when closing are restored after launching RStudio again, but if I am in a project, just the workspace and the history are restored. Other issue: I prefer to work with the grid view of the global environment, but now RStudio always starts with the list view.
It is not a big deal to look for the files I left opened, I just want to know if other people have the same problem or it is something in the configuration of my computer that I can fix with the help of an expert.
Here is the information:
RStudio Edition: Desktop
The version of RStudio is RStudio 2021.09.0+351 "Ghost Orchid" Release (077589bcad3467ae79f318afe8641a1899a51606, 2021-09-20) for Windows
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) QtWebEngine/5.12.8 Chrome/69.0.3497.128 Safari/537.36

The OS is Windows 10 Home Single Language, version 20H2
The R version is R version 4.0.2 (2020-06-22) -- "Taking Off Again"

Thanks in advance
Luis

Sorry for this. I personally love how my RStudio projects reopen my files to exactly where I left off, even weeks later.

I see you are on the most recent release, and I don't see any issues related to this. If you'd be up for it, I think the IDE team would appreciate a bug report to help understand and diagnose the issue.

And then I'd encourage you to upgrade your RStudio IDE once we put out a new minor release, (basically, check the download RStudio page in a week).

Thank you, your comments were very helpful. I started working with python in RStudio and I ran into some problems than lent me to change some configuration variables. Surely I changed something that now is kept in the registry.
I will upgrade my RStudio as soon as possible.
Thanks
Luis

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.