R/get_album.r

Defines functions get_album

Documented in get_album

get_album <- 
function(album, ...){
    if(inherits(album, 'imgur_album') || inherits(album, 'imgur_gallery_album'))
        album <- album$id
    out <- imgurGET(paste0('album/', album), ...)
    out[['images']] <- lapply(out[['images']], `class<-`, 'imgur_image')
    structure(out, class = 'imgur_album')
}

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.