Java Script alert R encountered a fatal error. This session was terminated

匿名 (未验证) 提交于 2019-12-03 03:03:02

问题:

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)

回答1:

goto folder

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

And delete the file history_database. (For someone in linux, search the same file) 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") )



回答2:

I tried to use few method but not works, finally get the solution via the link.

<p>R encountered a fatal error.</p>The session was terminated.



回答3:

I had this issue when I installed a newer version of RStudio. It went away after I uninstalled the previous version of the software.



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!