get_content_length | R Documentation |
This function retrieves the content length of a file to be downloaded from the API.
get_content_length(api, file_to_download)
api |
An endpoint to the dataset variants. |
file_to_download |
A character vector of file names to download. |
An integer vector of content lengths, named by the file names.
api <- get_topic("Postal")
files <- get_latest_files(api)$csv
purrr::map(
files,
get_content_length,
api = api) |>
tibble::as_tibble()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.