Out of blue, RStudio became incredibly slow and freeze up. I use R version 4.5.0, and RStudio version 2024.12.1+563. I use MacOS Sequoia 15.4.1.
I searched for this topic, found some relevant posts, and tried a few suggested solutions.
- Uncheck Show Diagnostics
- Reboot the computer.
- Uninstall and reinstall R and RStudio.
Nothing above has worked so far. One thing that's very weird is, when things freeze in RStudio, % CPU in Activity Monitor (MacOS) goes up to 100+%.
I'm in desperate need of help. If anyone has any idea, please let me know.
I ended up figuring this out on ChatGPT and here's what worked for me:
RStudio sometimes holds onto corrupt state/config files that cause freezing.
Steps:
-
Close RStudio completely.
-
In Finder, press
Cmd + Shift + G
, and go to:
~/.config/rstudio
Delete or move this folder elsewhere (backup if needed). -
Also clear:
~/.local/share/rstudio
~/Library/Application Support/RStudio
~/Library/Preferences/com.rstudio.desktop.plist
Then relaunch RStudio. This forces it to regenerate fresh config files.