Skip to contents

download attachments

Usage

get_attachments(data, dest = NULL)

Arguments

data

tibble of datasets as given by attachments(). Must contains an id column

dest

directory to write files

Examples

datasets() %>%
  dido_search("drom") %>%
  attachments() %>%
  get_attachments(dest = tempdir())
#> file downloaded: /tmp/RtmpF5CYw6/liste-des-variables-donnees-annuelles-de-consommation-de-produits-petroliers-par-drom.pdf