R/read_abs_local.R
read_abs_url.Rd
Download and import an ABS time series spreadsheet from a given URL
read_abs_url(
url,
path = Sys.getenv("R_READABS_PATH", unset = tempdir()),
show_progress_bars = TRUE,
...
)
Character vector of url(s) to ABS time series spreadsheet(s).
Local directory in which downloaded ABS time series
spreadsheets should be stored. By default, path
takes the value set in the
environment variable "R_READABS_PATH". If this variable is not set,
any files downloaded by read_abs() will be stored in a temporary directory
(tempdir()
). See ?read_abs()
for more.
TRUE by default. If set to FALSE, progress bars will not be shown when ABS spreadsheets are downloading.
Additional arguments passed to read_abs_local()
.
If you have a specific URL to the time series spreadsheet you wish
to download, read_abs_url()
will download, import and tidy it. This is
useful for older vintages of data, or discontinued data.
if (FALSE) { # \dontrun{
url <- paste0(
"https://www.abs.gov.au/statistics/labour/",
"employment-and-unemployment/labour-force-australia/aug-2022/6202001.xlsx"
)
read_abs_url(url)
} # }