Learn R Programming

httpgd (version 2.0.1)

hgd_close: Close httpgd device.

Description

This achieves the same effect as grDevices::dev.off(), but will only close the device if it has the httpgd type.

Usage

hgd_close(which = dev.cur(), all = FALSE)

Value

Number and name of the new active device (after the specified device has been shut down).

Arguments

which

Which device (ID).

all

Should all running httpgd devices be closed.

Examples

Run this code
if (FALSE) {

hgd()
hgd_browse() # open browser
hist(rnorm(100))
hgd_close() # Equvalent to dev.off()

hgd()
hgd()
hgd()
hgd_close(all = TRUE)
}

Run the code above in your browser using DataLab