Skip to contents

Fetches and imports ABARES trade data.

Usage

read_abares_trade(cache = TRUE)

Arguments

cache

Boolean Cache the ABARES trade data after download using tools::R_user_dir() to identify the proper directory for storing user data in a cache for this package. Defaults to TRUE, caching the files locally as a native R object. If FALSE, this function uses tempdir() and the files are deleted upon closing of the active R session.

Value

A data.table object of the ABARES trade data.

Note

Columns are renamed for consistency with other ABARES products serviced in this package using a snake_case format and ordered consistently.

See also

Examples

if (FALSE) { # interactive()
trade <- read_abares_trade()

trade
}