I got a similar question about the .R flile:
I am very sure I saved my .R file. Last night when I restart my computer and open Rstudio, one of my .R file back to two weeks ago version, a lot of new changes and updates has been gone. I checked other .R files, they are all fine. I am wondering what is the problem in here, the R? the Rstudio? my disk? or any setting? Is there anyway to find the new version of this .R file in somewhere?
One important point: it is this .R file that I used last before I restart my computer, and I am very sure it has been saved before I close the Rstudio. Any suggestions? Thanks
RStudio 2022.12.0+353 "Elsbeth Geranium" Release (7d165dcfc1b6d300eb247738db2c7076234f6ef0, 2022-12-03) for Ubuntu Jammy
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) rstudio/2022.12.0+353 Chrome/102.0.5005.167 Electron/19.1.3 Safari/537.36