Description Usage Arguments Details Value Author(s) See Also Examples
Open a specified graphics device function an configure it to upload to Imgur
1 2 |
device |
A graphics device function. Default is |
file |
Name of the file to be uploaded to imgur.com |
title |
Optionally, an image title. |
description |
Optionally, an image description. |
album |
Optionally, an Imgur album ID. |
name |
Optionally, a file name, otherwise the |
key |
An API key. If |
token |
Optionally, an OAuth2.0 token (returned by |
... |
Other arguments passed to the specified device function. |
This package is a wrapper for the pdf
function. A temporary file is created by pdf
, acting as normal
graphical device. After plotting, when dev.off
is called, the file is closed, uploaded to imguR and a URL of
the files location is returned. In the case of multipaged pdfs being uploaded, imguR automatically concatenates them
into a single image.
An object of class “imgur_device” to be passed to imgur_off
.
Thomas J. Leeper, based on code by Aaron Statham.
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.