get_pngs_and_show: Download PNG for the icons in a list from get_icon_by_term()

Description Usage Arguments Value Examples

Description

Download PNG for the icons in a list from get_icon_by_term()

Usage

1
get_pngs_and_show(icon_lists)

Arguments

icon_lists

List of details about icons from Noun Project supplied by the function get_icon_by_term() (may be useful for other functions too)

Value

group of images in a PNG format

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
# assemble the url to get 4 dog icons
url <- nounprojectR::make_term_endpoint("dog", num_of_imgs = 4)
# obtain information from the Noun Project server 
res <- get_nouns_api(url)
# extract the JSON file
result <- httr::content(res)
# show the images
get_pngs_and_show(result)

## End(Not run)

CaRdiffR/nounprojectR documentation built on May 4, 2019, 9:49 a.m.