Package imgur. R topics documented: December 20, Type Package. Title Share plots using the imgur.com image hosting service. Version 0.1.

Similar documents
Package imgur. August 29, 2016

Package RYoudaoTranslate

Package stacomirtools

Package MDSGUI. February 19, 2015

Package datasets.load

Package algorithmia. September 13, 2016

Package gridgraphics

Package imdbapi. April 24, 2018

Package Combine. R topics documented: September 4, Type Package Title Game-Theoretic Probability Combination Version 1.

Package io. January 15, 2018

Package orderbook. R topics documented: February 20, Type Package Title Orderbook visualization/charting software

Package gcite. R topics documented: February 2, Type Package Title Google Citation Parser Version Date Author John Muschelli

Package Rwinsteps. February 19, 2015

Package logitnorm. R topics documented: February 20, 2015

Package iterators. December 12, 2017

Package kirby21.base

Package promote. November 15, 2017

Package rwars. January 14, 2017

Package JGR. September 24, 2017

Package GetoptLong. June 10, 2018

Package Ohmage. R topics documented: February 19, 2015

Package gsalib. R topics documented: February 20, Type Package. Title Utility Functions For GATK. Version 2.1.

Package MicroStrategyR

Package TSzip. February 15, 2013

Package ecoseries. R topics documented: September 27, 2017

Package autoshiny. June 25, 2018

Package stacomirtools

Package lumberjack. R topics documented: July 20, 2018

Package wikitaxa. December 21, 2017

Package wethepeople. March 3, 2013

Package clipr. June 23, 2018

Package corclass. R topics documented: January 20, 2016

Package ptinpoly. February 20, 2015

Package RPushbullet. February 17, 2017

Package JBTools. R topics documented: June 2, 2015

Package R.devices. November 10, 2016

Package scraep. July 3, Index 6

Package sqliter. August 29, 2016

Package yhatr. R topics documented: May 9, Type Package Title R Binder for the Yhat API Version Date

Package gifti. February 1, 2018

Package genelistpie. February 19, 2015

Package doredis. R topics documented: December 15, Type Package. Title Foreach parallel adapter for the rredis package. Version 1.0.

Package readmzxmldata

Package assertive.code

Package gibbs.met. February 19, 2015

Package distrteach. R topics documented: January 20, Version 2.3 Date

Package superbiclust

Package rosm. April 8, 2017

Package scraep. November 15, Index 6

Package cgh. R topics documented: February 19, 2015

Package pmg. R topics documented: March 9, Version Title Poor Man s GUI. Author John Verzani with contributions by Yvonnick Noel

Package bigml. May 20, 2015

Package TilePlot. February 15, 2013

Package R2SWF. R topics documented: February 15, Version 0.4. Title Convert R Graphics to Flash Animations. Date

Package HTMLUtils. R topics documented: February 19, Type Package

Package httpcache. October 17, 2017

Package goodpractice

Package gmapsdistance

Package keep. R topics documented: December 16, 2015

Package deductive. June 2, 2017

Package aws.transcribe

Package repo. May 16, 2018

Package fimport. November 20, 2017

Package lvec. May 24, 2018

Package rtsdata. October 26, 2018

Package profvis. R topics documented:

Package IgorR. May 21, 2017

Package WordR. September 7, 2017

Package fastqcr. April 11, 2017

Package lmesplines. R topics documented: February 20, Version

Package MmgraphR. R topics documented: September 14, Type Package

Package spark. July 21, 2017

Package PubMedWordcloud

CRM Service Wrapper User Guide

Package QCAtools. January 3, 2017

Package gpdtest. February 19, 2015

2 sybildynfba-package. Dynamic Flux Balance Analysis

Package GenSA. R topics documented: January 17, Type Package Title Generalized Simulated Annealing Version 1.1.

Package bigreadr. R topics documented: August 13, Version Date Title Read Large Text Files

Package geojsonsf. R topics documented: January 11, Type Package Title GeoJSON to Simple Feature Converter Version 1.3.

Package Segmentor3IsBack

Package barcoder. October 26, 2018

Package eulerian. February 19, Index 5

Package fail. R topics documented: October 1, Type Package. Title File Abstraction Interface Layer (FAIL)

Package rgdax. January 7, 2019

Package truncreg. R topics documented: August 3, 2016

Package TilePlot. April 8, 2011

Package horizon. R topics documented: July 3, Type Package Title Horizon Search Algorithm Version 1.2 Date Author Jasper Van doninck

Introduction to Programming Using Java (98-388)

Package corenlp. June 3, 2015

Package validara. October 19, 2017

Package internetarchive

Package remotes. December 21, 2017

Package rvg. February 13, 2018

Package SAENET. June 4, 2015

Package loggit. April 9, 2018

Package TipDatingBeast

Package sankey. R topics documented: October 22, 2017

Package sfc. August 29, 2016

Package longclust. March 18, 2018

Transcription:

Package imgur December 20, 2010 Type Package Title Share plots using the imgur.com image hosting service Version 0.1.4 Date 2010-12-18 Author Aaron Statham Maintainer Aaron Statham <aaron.l.statham@gmail.com> Depends XML, RCurl A package to share plots using the image hosting service imgur.com License GPL-3 LazyLoad yes Repository CRAN Repository/R-Forge/Project imgur Repository/R-Forge/Revision 7 Date/Publication 2010-12-20 11:05:49 R topics documented: dev.off............................................ 2 imgur............................................ 3 imgurupload........................................ 4 to.imgur.......................................... 5 Index 6 1

2 dev.off dev.off Close a plotting device and upload to imgur This function closes the specified plot (by default the current device) and if it is an imgur device, uploads the plots for web hosting dev.off(which = dev.cur(), justlink = TRUE) Arguments which justlink An integer specifying a device number A boolean indicating whether to return only a link. 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. This function overloads the grdevices::dev.off() function, inspects whether the device chosen to be closed in an imgur device, and if so handles closing and uploading of this device, otherwise passes the which argument to be handled by grdevices::dev.off(). If justlink is TRUE, then a character vector of length one is returned containing the URL of where the plot is hosted. If justlink is FALSE, a list parsed from the imgur JSON response after uploading the plot - importantly this includes the link which when visited will delete the plot from imgur. imgur imgurupload

imgur 3 imgur() cat(dev.off()) imgur imgur Graphics Device imgur starts a device driver (wrapped around pdf) which automatically uploads plots to the free image hosting service imgur.com imgur(title = NULL, caption = NULL, name = NULL,...) Arguments Details title caption name... Additional arguments passed to pdf 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. imgur is invoked for its side effect and returns nothing dev.off imgurupload

4 imgurupload imgur() cat(dev.off()) imgurupload Uploads an image file to imgur.com Takes an image file, and uploads it to imgur.com using the anonymous API and returns a list containing details of where the image is hosted. imgurupload(filename, title = NULL, caption = NULL, name = basename(filename), apik Arguments filename title caption name apikey Name of the file to be uploaded to imgur.com The anonymous API key provided by imgur for the imgur package - this allows 50 image uploads per hour. A list parsed from the imgur JSON response after uploading the plot (see the imgur API for details) imgur dev.off

to.imgur 5 tmpfile <- tempfile() pdf(tmpfile) dev.off() temp <- imgurupload(tmpfile) cat(temp["links.imgur_page"]) to.imgur imgur Graphics Device Details Copies the current graphics device to imgur.com to.imgur() 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. imgur is invoked for its side effect and returns nothing dev.off imgurupload cat(to.imgur())

Index dev.off, 2, 3 5 imgur, 2, 3, 4 imgurupload, 2, 3, 4, 5 to.imgur, 5 6