R/get_hcd_from_url.R

Defines functions get_hcd_from_url

##' @importFrom curl curl_download
get_hcd_from_url <- function(URL, ...) {
    tmp <- tempfile()
    f <- curl_download(URL, destfile = tmp)
    res <- capture_warnings(read_hcd(f, ...))
    df <- res$value
    attr(df, "warnings") <- res$warnings
    df
}
gavinsimpson/canadaHCD documentation built on Sept. 23, 2023, 3:13 a.m.