downloadImages: Download images found using 'photosSearch'

Description Usage Arguments Value Examples

Description

Using the data returned from the

Usage

1
2
downloadImages(photoSearch_results, licenses = 7:10, saveDir = ".",
  max_quality = 2, verbose = TRUE)

Arguments

photoSearch_results

A data.frame output from photoSearch.

licenses

Numeric vector, set the licenses you want to download images for. See getLicenses

saveDir

Character, the path where images should be saved

max_quality

Numeric 1-4 giving the maximum quality of image you want to download 1=small, 4=large

verbose

logical, if TRUE the progeress through images is given

Value

A vector of all the URLs that where targetted for download

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
# run a workflow, using the logistic regression model
## Not run: 

snowmen <- photosSearch(year_range = c(2015, 2016),
                        text = 'snowman',
                        woe_id = 12578048)
downloadImages(snowmen,
               licenses = c(6:10),
               saveDir = tempdir(),
               max_quality = 2)


## End(Not run)

FrancescaMancini/FlickrAPI_EABhackathon documentation built on May 29, 2019, 10:52 a.m.