This is a duplicate of the issue previously posted by @JackFG in 2020 here:
The previous issue was automatically closed but remained unanswered and in 2024, I am still getting this problem too, despite having these options set:
In short, the project will just open a random bunch of files of coding past and present (thankfully not future), meaning I have to go through and close them all before getting on with my work. It's super annoying and I don't know how to fix it. Does anyone have any ideas how to fix it? For context, I'm in Windows 10, University computer, working on OneDrive. I mention the universtiy computer and OneDriver because there has been some discussion about admin rights/cloud services potentially corrupting RProject files, but i'm not sure that's the issue here especially as the contents of my RProject file is:
Version: 1.0
RestoreWorkspace: No SaveWorkspace: No AlwaysSaveHistory: No
Thanks very much Nir! I've been able to find a workaround for this issue off the back of you pointing me to this thread, as well as share some theories off the back of this with RStudio devs which might help them develop a permanent fix for this!