R/unigd.R
ugd_clear.Rd
This function will only work after starting a device with ugd().
ugd()
ugd_clear(which = dev.cur())
Which device (ID).
Whether there were any pages to remove.
ugd() plot(1, 1) hist(rnorm(100)) ugd_clear() # Clear all previous plots #> [1] TRUE hist(rnorm(100)) dev.off() #> agg_png #> 2