Skip to contents

Download or reuse efile table CSV files

Usage

download_tables(
  years,
  tables,
  source = data_source(),
  path = "efdata",
  cache = c("retain", "temporary"),
  overwrite = FALSE,
  retry_max = 3L,
  timeout = 300,
  verbose = TRUE
)

Arguments

years

Integer tax years.

tables

Aliases or literal canonical table names.

source

An data_source() configuration.

path

Cache directory used when cache = "retain".

cache

"retain" for a durable cache or "temporary" for a session temporary directory.

overwrite

Download again even when a cached file exists.

retry_max

Maximum attempts per remote file.

timeout

Download timeout in seconds.

verbose

Print progress messages.

Value

An download_result containing successful file paths and a structured table-year manifest.