Skip to contents

Downloads and extracts some version of the deposit. This function is specific to the structure of the wdds repo.

Usage

download_deposit_version(zenodo_id, version, latest_version, dir_path)

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.

Value

String. Path to downloaded version.