| imgur_off {imguR} | R Documentation |
Close an Imgur-linked plotting device and upload image
Description
This function closes the specified graphics device uploads the plot(s) to Imgur.
Usage
imgur_off(obj, ...)
Arguments
obj |
An object of class “imgur_device”. |
... |
Additional arguments passed to |
Details
This function takes the output object from 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.
Value
The response from upload_image.
Author(s)
Thomas J. Leeper, based on code by Aaron Statham.
See Also
Examples
## Not run:
i <- imgur('png')
hist(rnorm(20))
imgur_off(i)
## End(Not run)
[Package imguR version 1.0.3 Index]