imguR: imguR Graphics Device

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/imguR.R

Description

imguR starts a device driver (wrapped around pdf) which automatically uploads plots to the free image hosting service imgur.com

Usage

1
imguR(title = NULL, caption = NULL, name = NULL, ...)

Arguments

title

Image title passed to the imguR API

caption

Image title passed to the imguR API

name

Image title passed to the imguR API

...

Additional arguments passed to pdf

Details

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.

Value

imguR is invoked for its side effect and returns nothing

Author(s)

Aaron Statham (aaron.l.statham@gmail.com

References

http://www.imgur.com http://github.com/astatham/imgur-R-Package

See Also

dev.off imguRupload

Examples

1
2
3
imguR()
plot(x=1:10, y=-1:-10, col=1:10, pch=19, main="oh hai dere")
cat(dev.off())

Example output

$file
[1] "/work/tmp/tmp/RtmpI9nCjo/file6a332dfc0af0"

$current
png 
  3 

$title
NULL

$description
NULL

$name
NULL

$delete
[1] TRUE

attr(,"class")
[1] "imgur_device"
2

imguR documentation built on May 2, 2019, 4:21 p.m.