Get extract paths for extract with optional support for cached extract files
Source:R/get_ipumsr_extract_paths.R
get_ipumsr_extract_paths.RdDownload extract with download_ipumsr_extract() and return a list of file
paths for the data and shape files.
Usage
get_ipumsr_extract_paths(
extract = NULL,
data_file = NULL,
shape_file = NULL,
submit_extract = TRUE,
download_extract = TRUE,
download_dir = getwd(),
overwrite = FALSE,
progress = TRUE,
refresh = FALSE,
api_key = Sys.getenv("IPUMS_API_KEY")
)Arguments
- extract
An
ipums_extractobject.- submit_extract
If
extractis notNULLandsubmit_extract = TRUE, use ipumsr::submit_extract to submit the extract.- download_dir
Path to the directory where the files should be written. Defaults to current working directory.
- overwrite
If
TRUE, overwrite any conflicting files that already exist indownload_dir. Defaults toFALSE.- progress
If
TRUE, output progress bar showing the status of the download request. Defaults toTRUE.- api_key
API key associated with your user account. Defaults to the value of the
IPUMS_API_KEYenvironment variable. Seeset_ipums_api_key().