R RStudio

How to restore closed unsaved script in RStudio

If you just recently closed the unsaved (untitled) source tab in RStudio, there is a good chance that you can get it back. Try to restore RStudio script in 2 different ways.

1. If you are a Windows user, take a look at this folder.

C:\Users\your_username\AppData\Local\RStudio-Desktop\sources\s-FCB9DC2E

There are usually files that end with “-contents”. Open some of them in a text editor and restore unsaved source code.

2. Take a look at the History tab.

0 comments on “How to restore closed unsaved script in RStudio

Leave a Reply

Your email address will not be published. Required fields are marked *