Downloads one Borealis .ivt (identified by a one-row borealis_ivt_catalogue()
slice, or by a bare numeric file_id) from the Dataverse access API into the
ivt cache and returns the local .ivt path. Requires the Borealis API key
(BOREALIS_DATAVERSE_KEY).
Arguments
- x
A one-row tibble from
borealis_ivt_catalogue(), or a Borealisfile_id(character/numeric).- key
Cache key naming the per-table folder under the ivt cache. Defaults to the catalogue row's
key(or thefile_idwhenxis a bare id).- dest_dir
Directory the
.ivtis written to. Defaults to a per-table folder under the ivt cache (ivt_cache_dir("ivt"));get_statcan_ivt()passes a temporary folder whenkeep_ivt = FALSE.- overwrite
Re-download even if a
.ivtalready exists.- quiet
Suppress the download message.
Examples
# Requires a Borealis API key (BOREALIS_DATAVERSE_KEY) and network access:
if (FALSE) { # \dontrun{
hits <- borealis_ivt_catalogue()
path <- borealis_ivt_download(hits[1, ], dest_dir = tempdir())
} # }
