raustats (version 0.1.0)

rba_file_download: Function to download statistics files from the RBA website and store locally

Description

This function downloads one or more RBA data files at the specified by URLs and saves a local copy.

Usage

rba_file_download(data_url, exdir = tempdir(), update_cache = TRUE)

Arguments

data_url

Character vector specifying an RBA data set URL.

exdir

Target directory for downloaded files (defaults to tempdir()). Directory is created if it doesn't exist.

update_cache

Logical expression, if FALSE (default), use the cached list of available RBA datasets, if TRUE, update the list of available datasets.

Value

Downloads data from the ABS website and returns a character vector listing the location where files are saved.