I have code to clear the workspace: rm(list=ls()) and code to clear the console: cat(\"\\014\")
rm(list=ls())
cat(\"\\014\")
Is there code to clear all plots from Rstudio?<
I usually use
while (dev.cur()>1) dev.off()
and since I use RGL a lot, I often add:
while (rgl.cur()) rgl.close()