Skip to contents

This function will only work after starting a device with ugd().

Usage

ugd_clear(which = dev.cur())

Arguments

which

Which device (ID).

Value

Whether there were any pages to remove.

Examples

ugd()
plot(1, 1)
hist(rnorm(100))
ugd_clear() # Clear all previous plots
#> [1] TRUE
hist(rnorm(100))

dev.off()
#> agg_png 
#>       2