Oh! That's different, the cloud version!
Because it's such a great tool, it's easy to forget that the open version, at least, is still in beta, \beta
There has been a rash of this type of problem recently it seems. I'm reliably informed that the RStudio cloud team monitors this tag and responds, although it seems to take longer than everyone would wish. Often, a server administrator on their end needs to force quit the process serving your project and restart it. Sometimes, but not always, data is recovered. I can't make any promises, though.
I hope with this information your professor will understand the reasons for the problem.
In the meantime, it may be possible to use R Studio Desktop as a partial replacement for coding and saving your work to be copied into the cloud instance when it repaired.