Run the trade package, reading and writing files on disk
Source:R/run-pipeline.R
run_trade_pipeline.RdReads base_financials_<country>.dta,
trade_RAW_<country>.dta and (if present) plants_RAW_<country>.dta,
exchange_rates.dta and tl3_typology.dta (else the package's
exchange_rates and tl3_typology) from config$input_dir; runs
build_trade_accounts_indicators() and compute_trade_characteristics();
writes trade_accounts_indicators_<country>.dta to config$input_dir and
n16_trade_characteristics_p1_<country>.csv / ..._p2_... to
config$output_dir. The second package (run_scaleup_pipeline()) is not
needed first: the trade package builds its own panel.
Arguments
- config
A
scaleup_configfromconfig_scaleup().