I have two Windows 11 laptops and all files are synchronized on OneDrive. I recently updated RStudio in both of them, this is the version:
RStudio 2025.05.0+496 "Mariposa Orchid" Release (f0b76cc00df96fe7f0ee687d4bed0423bc3de1f8, 2025-05-04) for windows
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) RStudio/2025.05.0+496 Chrome/132.0.6834.210 Electron/34.5.1 Safari/537.36, Quarto 1.6.42
I really like to keep the option "Restore previously open source documents at startup" enabled.
I am working on the same script on two laptops, but not simultaneously. Since the last update, something strange has been happening:
- I update my script on laptop A (laptop B is off), save it, and the script is correctly synced.
- I close the RStudio IDE and shut down laptop A.
- I turn on laptop B, and OneDrive syncs all the files to their latest versions. I open and update the script on laptop B, and all changes are synced correctly.
- I close the RStudio IDE and shut down laptop B.
- When I return to laptop A, RStudio automatically reopens the script. Unfortunately, it does not open the latest version from OneDrive; rather, the it restores the version saved in step 1.
The issue happens on both laptops. The only way to prevent this is to disable the option to restore scripts at startup on both laptops.
Is there another way to avoid this behavior?