Java Script 警报 R 遇到致命错误.此会话已终止 [英] Java Script alert R encountered a fatal error. This session was terminated

查看:39
本文介绍了Java Script 警报 R 遇到致命错误.此会话已终止的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我经常使用 RStudio,一切都运行顺利..但最近我的 Windows 崩溃了,不得不恢复到以前的时间.此后,当我打开 RStudio 时,我的项目没有打开广告,重复显示错误 Java Script alert R 遇到了致命错误.此会话已终止.我确信在 Windows 崩溃之前我上次使用 Rstudio 时我已经正确关闭了它.谁能告诉我如何解决这个问题(最好不会丢失太多数据并在 RStudio 上工作)

I was using RStudio regularly and all was working smoothly..But recently my Windows crashed terribly and had to be restored to a previous time. Thereafter, when I opened RStudio, my project is not opening ad repeatedly showing the error Java Script alert R encountered a fatal error. This session was terminated. I am sure I had closed Rstudio properly the time I had last used it before the Windows crash. Can anyone tell me how I could solve this problem(preferably without losing much data and work on RStudio)

推荐答案

转到文件夹

c:/Users/yourUserName/AppData/Local/Rstudio-Desktop

并删除文件history_database.(对于使用 linux 的人,搜索文件夹 .rstudio)您不会丢失打开的文件历史记录或环境历史记录.您可能需要更改默认文件夹,并手动打开其 .Rdata 文件,以获得您保存的最后一个环境.例如:load(paste0(getwd(),"/.RData"))

And delete the file history_database. (For someone in linux, search the folder .rstudio) You will NOT lose your open files history or environment history. You may have to change your default folder, and open manually its .Rdata file, in order to get the last environment you saved. Ex.: load(paste0(getwd(),"/.RData") )

此解决方案也适用于 Rstudio 服务器错误,例如:

This solution can also work for Rstudio-server errors like:

ERROR session hadabend; LOGGED FROM: rstudio::core::Error<unnamed>::rInit(const rstudio::r::session::RInitInfo&)

参见:https://community.rstudio.com/t/continuous-crash-on-rstudio-server/19302

这些错误通常是因为打开了几个未命名的文件.恢复后,您可能需要将打开文件的文本复制到空文件中,然后再保存.

These errors happen usually for having several untitled files open. After recovering, you may have to copy text of open files to empty files before saving.

这篇关于Java Script 警报 R 遇到致命错误.此会话已终止的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆