Download specimen images from the Reflora program.
This R package contains tools to download images from Brazil's Reflora Program (http://inct.florabrasil.net/reflora/ and http://www.splink.org.br).
install.packages(devtools)
devtools::install_github("gustavobio/reflora")
The main function is get_images
, which will download all available images for a given combination of three arguments:
- any, which searches for the provided query in all fields
- family, which searches for images of a given family
- institution_code, which searches for images from a given institution.
Example queries:
get_images("Miconia albicans")
get_images("Miconia albicans", institution_code = "UNICAMP")
get_images(family = "Melastomataceae", institution_code = "UNICAMP")
get_images("UEC175546")
get_images(family = "Rubiaceae")
Institution codes can be found at http://www.splink.org.br. Each call above will create a folder in the current working directory named as the combination of search queries. All images will be downloaded and stored in these folders.
Use setwd()
to change the root path where the folders will be created.