RStudio lag and high memory usage by RStudio (not R session)

I think I solved my own question! I tried deleting the .Rproj.user folder (after closing RStudio), and once I did that, RStudio got very snappy again! It seems like that folder can get corrupted somehow? I found this solution when I stumbled on this post: RStudio Desktop unresponsive in project

So, hopefully this post might amplify this solution for others who encounter it.