RStudio turned my R script to 0 bytes

I have a source file from 2022 that I use from time for work. Last time I used was May, everything was normal. When I tried to use it the other day, I saw that it was 0 bytes and when I opened it was blank. I tried to re-open with different encodings but no luck. I also tried various other editors, such as Tinn-R and vi on a linux machine, but nothing. It really seems as if there is nothing in there.