Update one SEC DERA Financial Statement and Notes source file
update_dera_notes_file.RdDownloads one SEC DERA Financial Statement and Notes zip file and writes its
component Parquet files under $DATA_DIR/dera_notes.
Usage
update_dera_notes_file(
file,
data_dir = NULL,
user_agent = NULL,
quiet = FALSE,
cache = TRUE
)Arguments
- file
Zip file name from the SEC DERA page, such as
"2024q1.zip".- data_dir
Root of the local Parquet repository. Defaults to
DATA_DIR.- user_agent
Optional SEC-compliant user agent. If omitted, resolved using
dera_user_agent().- quiet
If
TRUE, suppress progress messages.- cache
If
TRUE, cache downloaded zip files undertools::R_user_dir("dera.pq", "cache"). If a string, use that directory as the zip cache. IfFALSE, download to a temporary file and delete it after processing.