Reputation: 71
When I open R Studio it loads "R Notebook" and freezes there indefinitely. I've tried uninstalling it and also R but that didn't help. I am not sure what the problem is since it was working fine before.
Anyone has knows why this might be happening?
Upvotes: 4
Views: 5795
Reputation: 1
If anyone is still having this problem, removing old session info in Rstudio cd ~/.local/share/rstudio/ helps and once you get Rstudio open prevent it from happening by changing settings in Tools -> Global options -> Restore .RData into workspace at startup
Upvotes: 0
Reputation: 1199
I also had this issue with RStudio Server. A project crashed when I tried to open a Rmd file. Now every time I tried to re-open that project it ran into the "R Notebook ..." freeze. Took me some time to figure it out, but this approach worked for me at least:
.Rproj.user
folderUpvotes: 1
Reputation: 856
I was dealing with the same problem... In my case, the problem has also with Qt qtwebengineprocess consuming a lot of CPU, as described here, here or here
I tried to exclude .RData, and project file (.RProj)... it does not work... the only way to solve the issue was to delete the project folder which is usually hidden project folder (the folder .Rproj.user).
The above three steps enable to open the R Studio, and create a new project file (from existing directory).
Usually the above suffices, but it appears sometimes do not solve the issue with a specific .Rmd. When it happened, it was solved just copy-and-pasting the .Rmd file into another folder and working from there...
Upvotes: 2
Reputation: 1362
This happens to me sometimes when the prior R session failed or closed abruptly. If you close RStudio and then double click on another *.R or *.Rmd file to kick start RStudio, it will skip the "normal" startup that is corrupted for whatever reason.
Upvotes: 0
Reputation: 3414
One of the reason it may happen that you created rather big object(s) in R session, e.g. with m <- matrix(seq.int(5e8), ncol = 10)
(1.9 Gb), then the project session was saved in .Rdata file & .RDataTmp files. It takes big amount of time to load them. So if the data in your session are not vital you can just delete it from the project's home directory (indicated in yellow below).
Upvotes: 1