This achieves the same effect as grDevices::dev.off(),
but will only close the device if it has the unigd type.
Usage
ugd_close(which = dev.cur(), all = FALSE)This achieves the same effect as grDevices::dev.off(),
but will only close the device if it has the unigd type.
ugd_close(which = dev.cur(), all = FALSE)