Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

R Studio freezes on load

Tags:

r

rstudio

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?

like image 262
ffg Avatar asked Sep 20 '25 05:09

ffg


2 Answers

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...

like image 139
hamagust Avatar answered Sep 22 '25 19:09

hamagust


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). enter image description here

like image 43
Artem Avatar answered Sep 22 '25 18:09

Artem