Fetches and unzips the .ivt for a StatCan data table from the public
Beyond 20/20 endpoint
(https://www150.statcan.gc.ca/n1/<lang>/tbl/b2020/<pid>.zip).
Usage
ivt_download(
pid,
dest_dir = NULL,
lang = c("en", "fr"),
overwrite = FALSE,
quiet = FALSE
)Arguments
- pid
StatCan product id, e.g.
"98100241"or9810024101. Any trailing version digits are dropped to the 8-digit table id.- dest_dir
Directory to download into (created if needed). Defaults to a per-table folder under the IVT cache (ivt_cache_dir("ivt"), i.e. option
canivt.ivt_cacheortempdir()when unset).- lang
"en"(default) or"fr"endpoint.- overwrite
Re-download even if the
.ivtalready exists. DefaultFALSE.- quiet
Suppress the download progress bar. Default
FALSE.
