Skip to contents

Generate a bowerbird data source object for a Zenodo data set

Usage

bb_zenodo_source(id, use_latest = FALSE)

Arguments

id

: the ID of the data set

use_latest

logical: if TRUE, use the most recent version of the data set (if there is one). The most recent version might have a different data set ID to the one provided here

Value

A tibble containing the data source definition, as would be returned by bb_source

See also

Examples

if (FALSE) { # \dontrun{
  ## generate the source object for the dataset
  ##   'Ichtyological data of Station de biologie des Laurentides 2019'
  src <- bb_zenodo_source(3533328)

  ## download it to a temporary directory
  data_dir <- tempfile()
  dir.create(data_dir)
  res <- bb_get(src, local_file_root = data_dir, verbose = TRUE)
  res$files
} # }