download_previous_payrolls: This function is temporarily necessary while the readabs...

View source: R/read_payrolls.R

download_previous_payrollsR Documentation

This function is temporarily necessary while the readabs maintainer attempts to resolve an issue with the ABS. The ABS as at late March 2021 stopped including Table 5 of the Weekly Payrolls release with each new release of the data. This function finds the link from the previous release and attemps to download it. This function will no longer be required if/when the ABS reverts to the previous release arrangements. The function is internal and is called by read_payrolls().

Description

This function is temporarily necessary while the readabs maintainer attempts to resolve an issue with the ABS. The ABS as at late March 2021 stopped including Table 5 of the Weekly Payrolls release with each new release of the data. This function finds the link from the previous release and attemps to download it. This function will no longer be required if/when the ABS reverts to the previous release arrangements. The function is internal and is called by read_payrolls().

Usage

download_previous_payrolls(cube_name, path)

Arguments

cube_name

eg. DO004 for table 4

path

Directory in which to download payrolls cube

Value

A list containing two elements: result (will contain path + filename to downloaded file if download was successful); and error (NULL if file downloaded successfully; character otherwise).


MattCowgill/readabs documentation built on Feb. 2, 2024, 12:03 a.m.