I had the same problem and I tried the @r2evans proposed solution and did work. In particular, I edited the lines of code printing the heavy plots, then I saved the file.
I re-opened it in RStudio and the problem was solved