R has erased files

The last weeks I’ve been working on two R files. I have a tendency to save my files every minute, so I have done that for sure at least once per day.

Yesterday, while working in R on a (shared) remote desktop connection, R froze. Therefore, I closed the program and opened it again this morning. Now, two .R files that I had opened up are empty, but another .R file that was opened still contains all its code.

Even when I try to restore to an older version in the file explorer, even there the older versions of my files are empty. Furthermore, the R environment that I was working with is still in tact.

Who can tell me what has happened and if there is a way to somehow retrieve my files again?