R/get_random_images.r

Defines functions get_random_images

Documented in get_random_images

get_random_images <- 
function(page = 0, ...){
    stopifnot(is.numeric(as.numeric(page)))
    out <- imgurGET(paste0('gallery/random/random/',
                           ifelse(!is.null(page), page, NULL)),
                    ...)
    out <- lapply(out, `class<-`, 'imgur_gallery_image')
    structure(out, class = 'imgur_gallery_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.