Retrieves the path to the CAMELS-PE dataset directory. It looks up paths in the following order of precedence:
The package option
rcamelspe.path.The environment variable
CAMELS_PE_PATH.The persistent user data directory (
tools::R_user_dir("rcamelspe", "data")).Default search paths in the current working directory (
raw-data/CAMELS-PE,data-raw/CAMELS-PE, etc.).The bundled minimal sample dataset in
inst/extdata/sample_camels_pe.
Value
Character string containing the directory path where the dataset is located,
or NULL if no valid path is found.
Examples
camels_path <- get_camels_pe_path()
is.character(camels_path)
#> [1] TRUE