How to get unsaved script tabs

后端 未结 6 2184
渐次进展
渐次进展 2020-12-13 19:32

I would like to know, if it is possible to get unsaved script tabs in R studio. I accidentally open and switch to new project, then my unsaved scripts disappeared. Can anyo

6条回答
  •  无人及你
    2020-12-13 19:57

    If you are on Windows, Go to the folder:

    C:\Users\[your user]\AppData\Local\RStudio-Desktop\sources
    

    where there are all of your unsaved tabs in folders, especially those that begin with s like s-******.

    There are two kinds of file (eg. D395C3B4 and D395C3B4-contents)
    D395C3B4 file contains JSON information about your unsaved tab (eg. "tempName" : "Untitled76") and your correspanding codes are in D395C3B4-contents file.
    Open D395C3B4-contents with notepad.

提交回复
热议问题