Skip to contents

Determines the absolute path to the raw HTS data when running without a database connection.

Usage

parse_raw_data_root(raw_data_root = NULL)

Arguments

code_root_path

character. Path to code root directory (can be relative or absolute).

Value

character(1). Absolute path to code root directory.

Details

  • Ensures all relative paths in the pipeline resolve correctly.

  • Uses RAW_DATA_PATH env var if set, else finds git root or working dir.

  • Handles R CMD CHECK and testthat environments for reproducible builds/tests.

  • Stops with error if path is not absolute during package checks.

See also

scripts/000_run_weight_scripts.R

Other settings management: check_write_to_db(), get_settings(), parse_code_root(), parse_settings_path(), set_defaults(), update_data_root(), update_directories(), update_settings_pums_vars()

Examples

## Not run:
Sys.setenv(RAW_DATA_PATH = getwd())
parse_raw_data_root()
#> Error in parse_raw_data_root(): could not find function "parse_raw_data_root"
## End(Not run)