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

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")
#> [1] "FORCIS_cpr_north_v03_14062023.csv" "FORCIS_cpr_south_v03_14062023.csv"
#> [3] "FORCIS%20data%20template.xlsx"     "FORCIS_net_v03_14062023.csv"      
#> [5] "FORCIS_pump_v03_14062023.csv"      "FORCIS%20taxonomy%20levels.xlsx"  
#> [7] "FORCIS_trap_v03_14062023.csv"