The download_ecoregion() function accesses and downloads United
States Ecoregions data from the U.S. Environmental Protection Agency's (EPA)
Ecoregions.
Usage
download_ecoregion(
directory_to_save = NULL,
acknowledgement = FALSE,
download = TRUE,
remove_command = FALSE,
unzip = TRUE,
remove_zip = FALSE,
show_progress = TRUE,
hash = FALSE,
max_tries = 20,
rate_limit = 2
)Arguments
- directory_to_save
character(1). Directory to save data.
- acknowledgement
logical(1). Must be TRUE to proceed.
- download
logical(1). DEPRECATED. Downloads happen automatically.
- remove_command
logical(1). Deprecated, ignored.
- unzip
logical(1). Unzip zip files (default TRUE).
- remove_zip
logical(1). Remove zip files after unzipping (default FALSE).
- show_progress
logical(1). Show download progress (default TRUE)
- hash
logical(1). Return hash of downloaded files (default FALSE)
- max_tries
integer(1). Maximum retry attempts (default 20)
- rate_limit
numeric(1). Minimum seconds between requests (default 2)
References
Omernik JM, Griffith GE (2014). “Ecoregions of the Conterminous United States: Evolution of a Hierarchical Spatial Framework.” Environmental Management, 54(6), 1249–1266. ISSN 0364-152X, 1432-1009. doi:10.1007/s00267-014-0364-1 . https://link.springer.com/article/10.1007/s00267-014-0364-1.
Examples
if (FALSE) { # \dontrun{
download_ecoregion(
directory_to_save = tempdir(),
acknowledgement = TRUE
)
} # }