本文介绍了如何获取未保存的脚本选项卡的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道,是否可以在 R Studio 中获得未保存的脚本选项卡.我不小心打开并切换到新项目,然后我未保存的脚本消失了.任何人都可以帮助获取我未保存的脚本选项卡.

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 anyone help to get my unsaved script tabs.

推荐答案

如果您使用的是 Windows,请转到文件夹:

If you are on Windows, Go to the folder:

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

如果您使用的是 UBUNTU:

and if you are on UBUNTU:

home/[your user]/.rstudio-desktop/sources

文件夹中包含所有未保存标签的地方,尤其是那些以 s 开头的标签,例如 s-******.

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

有两种文件(例如D395C3B4D395C3B4-contents)
D395C3B4 文件包含有关您未保存标签的 JSON 信息(例如,tempName":Untitled76") 并且您的相关代码在 D395C3B4-contents 中代码>文件.
用记事本打开 D395C3B4-contents.

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.

这篇关于如何获取未保存的脚本选项卡的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-15 06:42