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)
goto folder
c:/Users/yourUserName/AppData/Local/Rstudio-Desktop
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") )
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&)
See: 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.
I had this issue when I installed a newer version of RStudio. It went away after I uninstalled the previous version of the software.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With