Run the full Scale-Up pipeline, reading and writing files on disk
Source:R/run-pipeline.R
run_scaleup_pipeline.RdMirrors MASTER_OECD_p2.do (Pseudocode/MASTER_OECD_p2.md): reads 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 (see Stata2R/recommendation.md).
Call the pure functions directly if you already have the inputs loaded in
R (e.g. this package's own bundled tl3_typology/exchange_rates data).