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.