Package 'zenodor'

Title: Download Files from a Zenodo Repository
Description: Lists and downloads available files of a Zenodo repository. For restricted repository a token must be provided.
Authors: Nicolas Casajus [aut, cre, cph]
Maintainer: Nicolas Casajus <[email protected]>
License: GPL (>= 2)
Version: 0.1
Built: 2024-11-21 02:48:17 UTC
Source: https://github.com/FRBCesab/zenodor

Help Index


Download files of a Zenodo repository

Description

Downloads files of a Zenodo repository. If the repository is in restricted access, a token (argument token) must be provided.

Usage

zen_download_files(record_id, token, path = ".", files = NULL)

Arguments

record_id

a character of length 1. The Zenodo identifier of the repository (7 numbers). Can be found on the URL of the repository

token

a character of length 1. A token generated by Zenodo to access files of a restricted access.

path

a character of length 1. The folder in which files will be saved.

files

a character vector. If one or several files are provided, only these files will be downloaded. If NULL (default) all files will be downloaded.

Value

No returned value.

Examples

# List files available in the repo: https://zenodo.org/record/7936568 ----
zen_list_files("7936568")

## Not run: 
# Download one file ----
zen_download_files("7936568", files = "FORCIS_pump_v03_14062023.csv")

# Download all files ----
zen_download_files("7936568")

## End(Not run)

List files of a Zenodo repository

Description

Lists files of a Zenodo repository. If the repository is in restricted access, a token (argument token) must be provided.

Usage

zen_list_files(record_id, token)

Arguments

record_id

a character of length 1. The Zenodo identifier of the repository (7 numbers). Can be found on the URL of the repository

token

a character of length 1. A token generated by Zenodo to access files of a restricted access.

Value

No returned value.

Examples

# List files available in the repo: https://zenodo.org/record/7936568 ----
zen_list_files("7936568")