
Catalogue of Borealis Dataverse Beyond 20/20 IVT products
Source:R/borealis.R
borealis_ivt_catalogue.RdSearches the Borealis Dataverse for every deposited
.ivt file and returns a tidy catalogue. Borealis hosts custom StatCan
tabulations that complement the official statcan_ivt_catalogue(); the two are
used together by get_statcan_ivt(), which resolves a table against StatCan
first and falls back to Borealis.
Value
A tibble with one row per .ivt file: key (the canonical
<doi-token>/<file-stem> address), file (the deposited filename),
file_stem, file_id (the numeric Borealis datafile id – always unique),
dataset_doi, dataset_name, download_url, size_in_bytes, md5,
published_at and file_type.
Details
The search is slow (~90 s, thousands of files) so the full catalogue is cached
as a Parquet file in the data cache (ivt_cache_dir("data"));
pass refresh = TRUE to rebuild it. Reading the cache needs neither the
dataverse package nor an API key – only a live search does.
A Borealis API key is required to run the search. Get one from your
Borealis account (https://borealisdata.ca/dataverseuser.xhtml?selectTab=apiTokenTab)
and set it as the environment variable BOREALIS_DATAVERSE_KEY (e.g. in
.Renviron).
Examples
# Requires a Borealis API key (BOREALIS_DATAVERSE_KEY) and network access:
if (FALSE) { # \dontrun{
catl <- borealis_ivt_catalogue()
head(catl)
} # }