I just cleaned temporary archives of my pc (Windows 10), when I opened RStudio again my script was empty. The file exists and it's still in the place I saved it. But it only has 1 line and it's empty.
Is there any way to recover my files?
I just cleaned temporary archives of my pc (Windows 10), when I opened RStudio again my script was empty. The file exists and it's still in the place I saved it. But it only has 1 line and it's empty.
Is there any way to recover my files?
Apparantly it is a problem with the encoding, so to solve it you must open the script and then go to files > reopen with encoding
This was most likely the following upstream bug of RStudio, which appeared, when using R 4.2 in connection with affected RStudio versions. https://community.rstudio.com/t/r-code-file-is-becoming-0-kb-after-saving/138585