Run the full Scale-Up pipeline, reading and writing files on disk
Source:R/run-pipeline.R
run_scaleup_pipeline.RdReads the raw
inputs from config$input_dir, runs build_accounts_indicators() followed
by the four independent downstream stages (compute_characteristics(),
compute_persistence(), compute_contribution(), compute_predictors()),
and writes every output CSV to config$output_dir plus the intermediate
accounts_indicators_<country>.dta back to config$input_dir (as the
source PDF documents it - used for the manual confidentiality-check
worked example).
Arguments
- config
A
scaleup_configfromconfig_scaleup().
Value
Invisibly, a named list of every non-NULL output table produced
(the same tables written to config$output_dir).
Details
This is the only function in the package that performs file I/O; every
compute_*()/build_*() function is a pure, directly-testable
data-frame-in-data-frame-out transformation.
Call the pure functions directly if you already have the inputs loaded in
R.
The regional typology and the exchange rates are the package's
tl3_typology (for config$tl_classification) and exchange_rates,
unless tl3_typology.dta or exchange_rates.dta is in config$input_dir.