Downloads and extracts some version of the deposit. This function is specific to the structure of the wdds repo.
Arguments
- zenodo_id
String. ID for a Zenodo deposit. Should correspond to the version of a deposit.
- version
String. Version number/id for the deposit (e.g. v.1.1.1).
- latest_version
Logical. Indicates that the work is designated as the latest version.
- dir_path
String. Path to directory where the files should be downloaded e.g. "inst/extdata/wdds_archive" note no trailing slash on the path.
See also
Other WDDS deposit:
batch_download_deposit_versions()
,
list_deposit_versions()
,
sanitize_version()
,
set_wdds_version()
,
wdds_data_templates()
,
wdds_example_data()
,
wdds_json()
Examples
# list all deposit versions
list_deposit_versions()
#> zenodo_id version latest_version
#> 1 15270582 v.1.0.3 TRUE
#> 2 15257971 v.1.0.2 FALSE
#> 3 15133410 v.1.0.1 FALSE
#> 4 15020050 v.1.0.0 FALSE
# download the deposit
if (FALSE) { # \dontrun{
download_deposit_version("15270582", "v.1.0.3", TRUE, "data")
} # }