JavaScript alert R encountered a fatal error. This

2019-03-31 04:22发布

问题:

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 had this issue when I installed a newer version of RStudio. It went away after I uninstalled the previous version of the software.



回答3:

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.



标签: r rstudio