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.