hgd_close | R Documentation |
This achieves the same effect as grDevices::dev.off()
,
but will only close the device if it has the httpgd type.
hgd_close(which = dev.cur(), all = FALSE)
which |
Which device (ID). |
all |
Should all running httpgd devices be closed. |
Number and name of the new active device (after the specified device has been shut down).
## Not run:
hgd()
hgd_browse() # open browser
hist(rnorm(100))
hgd_close() # Equvalent to dev.off()
hgd()
hgd()
hgd()
hgd_close(all = TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.