2
A
回答
1
在我的Win7系统,我发现文件history_database
在C:/Users/../AppData/Local/RStudio-Desktop
之内。它每行有一个类似unix的时间戳,后跟一个命令。
我猜如果你清空这个文件,历史被清除。但是我还没有尝试过这个解决方案,所以最好将文件的副本放在保存的一面。
该文件应位于Win10中的类似文件夹中。
0
由于Phann的提示,我发现:
删除history_database
似乎做的工作。当再次启动RStudio时,会自动重新创建一个空的数据库文件(在MacOS和Linux上进行测试)。该文件夹在哪里可以找到history_database
取决于您的操作系统,并描述了更一般的情况here。
MacOS和Linux的
~/.rstudio-desktop
Windows Vista中,7和8
%localappdata%\RStudio-Desktop # (i.e. Phann's path, I guess)
的Windows XP
%USERPROFILE%\Local Settings\Application Data\RStudio-Desktop
Linux RStudio-Server
~/.rstudio