
imgur_off(obj, ...)
upload_image
.imgur
as its first argument, wraps dev.off
to close the graphics device opened by imgur
, and uploads the device's image to Imgur via upload_image
. If dev.off
has already closed the device, that step is skipped to prevent errors.imgur
## Not run:
# i <- imgur('png')
# hist(rnorm(20))
# imgur_off(i)
# ## End(Not run)
Run the code above in your browser using DataLab