
Setup project paths and environment for SNT pipeline
Source:R/setup_project_paths.R
setup_project_paths.RdCreates a list of standardized paths for the SNT pipelines Detects a project root automatically and constructs all data/cache/output paths with short, memorable names. Validates that folders exist and alerts if they don't. Use initialize_project_structure() to create the folders.
Value
Named list of absolute paths: core, admin_shp, physical_feat, hf, chw, pop_national, pop_worldpop, pop_displaced, cache, dhis2, pfpr_est, mortality_est, interventions, drug_eff, climate, accessibility, land_use, dhs, ento, commodities, finance, final_data, val, interm, final, model, val_fig, val_tbl, interm_fig, interm_tbl, final_fig, final_tbl, model_fig, model_tbl.
Examples
tmp <- tempdir()
paths <- setup_project_paths(base_path = tmp, quiet = TRUE)
paths$admin_shp
#> /tmp/Rtmpn8CWUk/01_data/1.1_foundational/1.1a_admin_boundaries
paths$val_fig
#> /tmp/Rtmpn8CWUk/03_outputs/3.1_validation/figures
paths$interm_tbl
#> /tmp/Rtmpn8CWUk/03_outputs/3.2_intermediate_products/tables