powered by
This function will only work after starting a device with ugd().
ugd()
ugd_clear(which = dev.cur())
Whether there were any pages to remove.
Which device (ID).
ugd() plot(1, 1) hist(rnorm(100)) ugd_clear() # Clear all previous plots hist(rnorm(100)) dev.off()
Run the code above in your browser using DataLab