This function will download an entire archive from Zenodo (https://zenodo.org). It only works for Zenodo created DOI (not when the DOI is for example derived from Zookeys.)

download_zenodo(doi, path = ".", parallel = FALSE, quiet = FALSE)

Arguments

doi

a doi pointer to the Zenodo archive starting with '10.5281/zenodo.'. See examples.

path

Path where the data must be downloaded. Defaults to the working directory.

parallel

Logical (FALSE by default). If TRUE, will run a number of parallel processes, each downloading another file. This is useful when multiple large files are present in the Zenodo record, which otherwise would be downloaded sequentially. Of course, the operation is limited by bandwidth and traffic limitations.

quiet

Logical (FALSE by default). Do you want to suppress informative messages (not warnings)?

See also

Other functions regarding file management for N2KHAB projects: checksum(), fileman_folders(), fileman_up()

Author

Hans Van Calster, hans.vancalster@inbo.be

Floris Vanderhaeghe, floris.vanderhaeghe@inbo.be

Examples

if (FALSE) {
# Example download of an archive containing a single zip
download_zenodo(doi = "10.5281/zenodo.1283345")
download_zenodo(doi = "10.5281/zenodo.1283345", quiet = TRUE)
# Example download of an archive containing multiple files
# using parallel download
# (multiple files will be simultaneously downloaded)
download_zenodo(doi = "10.5281/zenodo.1172801", parallel = TRUE)
# Example download of an archive containing a single pdf file
download_zenodo(doi = "10.5281/zenodo.168478")
}