Skip to contents

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).

Usage

run_scaleup_pipeline(config)

Arguments

config

A scaleup_config from config_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.