*RESOLVED* RStudio incredibly slow

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:

  1. Close RStudio completely.

  2. In Finder, press Cmd + Shift + G, and go to:
    ~/.config/rstudio
    Delete or move this folder elsewhere (backup if needed).

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

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.