Restore a previous version of the code

When I was trying to debug my code, I accidentally lost the completed version of my code. Is there anyway I could restore my code?? PLEASE help!
My project is:

Hi @Yue_Ying,
Welcome to the RStudio Community Forum.

You may be able to restore your code from the <History> tab. You can "select all" and then hit <To Source> to make a new script file.

Thank you so much! This is super helpful!

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.