Java Script 警报 R 遇到致命错误.此会话已终止

编程入门 行业动态 更新时间:2024-10-26 01:19:00
本文介绍了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&)

参见:community.rstudio/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 遇到致命错误.此会话已终止

本文发布于:2023-11-15 19:22:27,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1597262.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:警报   错误   Java   Script

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!