rgbif (version 0.9.2)

occ_download_get: Get a download from GBIF.

Description

Get a download from GBIF.

Usage

occ_download_get(key, path = ".", overwrite = FALSE, ...)

Arguments

key
A key generated from a request, like that from occ_download
path
Path to write zip file to. Default: ".", with a .zip appended to the end.
overwrite
Will only overwrite existing path if TRUE.
...
Further args passed to GET

Details

Downloads the zip file to a directory you specify on your machine. link[httr]{write_disk} is used internally to write the zip file to disk. This function only downloads the file. See occ_download_import to open a downloaded file in your R session. The speed of this function is of course proportional to the size of the file to download. For example, a 58 MB file on my machine took about 26 seconds.

Examples

Run this code
occ_download_get("0000066-140928181241064", overwrite = TRUE)
occ_download_get("0003983-140910143529206", overwrite = TRUE)

Run the code above in your browser using DataLab