Hello Team,
I have a similar problem as mentioned in R Code file is becoming 0 KB after saving
Unfortunately, the solutions offered in that post don't work for me (downloading the previous version of R 4.1.3., a new version of Rstudio and I have also tried changing the encoding settings of R).
The problem is specific to a file I made last May. In May, I worked on this file and saved it on my laptop. At the end of the day, I emailed this file to myself as a back-up. The next day I continued working on the file that was saved on my laptop and the code was there. Now I want to check something in that piece of code but the file is empty and it also says 0 kb. What's odd is that the attachment of the email that I sent to myself is also empty while I did continue working on that file that was saved on my laptop the next day. Otherwise I would have noticed an empty file in May already. Previous versions of the code that I saved on my laptop (and also backed-up via email) are also empty. I have the feeling there is something in that file that is not compatible anymore with R or Rstudio but unfortunately downloading previous versions of R does not help.
It would be great if anyone can help.
Thanks,
Hester