Uses the cdc_link_lookup data frame.

download_cdc(url)

Arguments

url

is a cdc url path that can be found from cdc_link_lookup variable us_data_url path as url input.

Value

the temporary file where the file was downloaded.

Examples

#'
if (FALSE) { # \dontrun{
meta <- data_mortality_multiple_1969
download <- usdeaths::cdc_link_lookup
url <- download |>
  filter(section == "mortality_multiple" & year == 1969) |>
  pull(us_data_url)
path <- download_cdc(url)
} # }