R/get_image.r

Defines functions get_image

Documented in get_image

get_image <- 
function(id, ...){
    if(inherits(id, 'imgur_image') || inherits(id, 'imgur_gallery_image'))
        id <- id$id
    out <- imgurGET(paste0('image/', id), ...)
    structure(out, class = 'imgur_image')
}

Try the imguR package in your browser

Any scripts or data that you put into this service are public.

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