bb_zenodo_source: Generate a bowerbird data source object for a Zenodo data set

View source: R/zenodo.R

bb_zenodo_sourceR Documentation

Generate a bowerbird data source object for a Zenodo data set

Description

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

bb_source

Examples

## Not run: 
  ## 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

## End(Not run)


AustralianAntarcticDivision/bowerbird documentation built on March 8, 2024, 8:33 a.m.