download_apra {readapra} | R Documentation |
Download a Statistical Publication File from APRA's Website
Description
Download a statistical publication file from APRA's website. By default files are saved to a temporary directory.
Usage
download_apra(
stat_pub,
cur_hist = "current",
path = tempdir(),
overwrite = TRUE,
quiet = FALSE,
...
)
Arguments
stat_pub |
character vector detailing a statistical publication to be
downloaded. Must match a valid value in the
|
cur_hist |
character vector detailing whether to download a current
or historic statistical publication. Must match a
valid value in the |
path |
path to where the downloaded file should be saved. Uses
|
overwrite |
whether to overwrite a previously downloaded statistical publication file when re-running this function. |
quiet |
whether to suppress the download progress bar. |
... |
additional arguments to be passed to |
Value
A character vector detailing the file path to the downloaded file.
Examples
# Download a statistical publication file:
download_path <-
download_apra(stat_pub = "qadips", cur_hist = "current")
# View the file path of the statistical publication file:
print(download_path)