Setup weighting data root directory
update_data_root.RdSets up the root directory for all pipeline outputs, using environment or fallback.
Details
Centralizes all project outputs for reproducibility and easy cleanup.
Uses WEIGHTING_DATA_PATH env var if set, else tempdir().
Converts relative paths to absolute, handles test environments.
Creates directory if missing (optional).
Stops with error if directory cannot be created.
See also
update_directories(), scripts/000_run_weight_scripts.R
Other settings management:
check_write_to_db(),
get_settings(),
parse_code_root(),
parse_raw_data_root(),
parse_settings_path(),
set_defaults(),
update_directories(),
update_settings_pums_vars()
Examples
## Not run:
Sys.setenv(WEIGHTING_DATA_PATH = tempdir())
update_data_root(list(), data_root = "test_cache")
#> Error in update_data_root(list(), data_root = "test_cache"): could not find function "update_data_root"
## End(Not run)