RStudio running abnormally slow for every action, including cleaning console and saving file.

Also, everytime I execute commands, the console will freeze and only show the first line of my executing code for a while. Feels like it's waiting for connection, like this:
3

I found some posts which have same issue as mine, but I don't see any solution in them:

Any idea? Thank you.