Retrieve a list of hierarchical config keys, each flattened into single strings where components in the hierarchy are separated by a dot. If no arguments are provided, this function retrieves the keys for the default config.
Arguments
- cfg_dir
A character string specifying the config directory, or NULL for the default. Default: An OS-specific path for user configuration files in the user's home directory.
- cfg_name
A character string specifying the config file name, or NULL for the default. Default: 'config.yml'
- cfg
A list of nested lists, with 'leaf' nodes specifying configuration values. Default: The template config returned by
generate_cfg_template()
Value
A character vector of hierarchical keys, each flattened into single strings where components in the hierarchy are separated by a dot.
Examples
get_cfg_keys(cfg = generate_cfg_template())
#> [1] "run"
#> [2] "run.msoa_lim"
#> [3] "run.seed_val"
#> [4] "store"
#> [5] "store.dat"
#> [6] "store.dat.interim"
#> [7] "store.dat.interim.dirs"
#> [8] "store.dat.interim.dirs.base"
#> [9] "store.dat.interim.fnames"
#> [10] "store.dat.interim.fnames.imputed_tus_dat"
#> [11] "store.dat.raw"
#> [12] "store.dat.raw.dirs"
#> [13] "store.dat.raw.dirs.base"
#> [14] "store.dat.raw.dirs.misc"
#> [15] "store.dat.raw.dirs.population"
#> [16] "store.dat.raw.dirs.shapefiles"
#> [17] "store.dat.raw.dirs.tus"
#> [18] "store.dat.raw.misc"
#> [19] "store.dat.raw.misc.nssec_class"
#> [20] "store.dat.raw.misc.sic2007_class"
#> [21] "store.dat.raw.misc.soc2010_class"
#> [22] "store.dat.raw.nm_patterns"
#> [23] "store.dat.raw.nm_patterns.pop_lad_tus"
#> [24] "store.dat.raw.shapefile_layers"
#> [25] "store.dat.raw.shapefile_layers.ew_msoa"
#> [26] "store.dat.raw.shapefile_layers.uk_full"
#> [27] "store.dat.raw.tus"
#> [28] "store.dat.raw.tus.uk_metadata_location"
#> [29] "store.dat.wrangled"
#> [30] "store.dat.wrangled.dirs"
#> [31] "store.dat.wrangled.dirs.base"
#> [32] "store.dat.wrangled.dirs.population"
#> [33] "store.dat.wrangled.dirs.shapefiles"
#> [34] "store.dat.wrangled.dirs.tus"
#> [35] "store.dat.wrangled.population"
#> [36] "store.dat.wrangled.population.pop_dat"
#> [37] "store.dat.wrangled.population_ref"
#> [38] "store.dat.wrangled.population_ref.pop_dat"
#> [39] "store.dat.wrangled.shapefiles"
#> [40] "store.dat.wrangled.shapefiles.ew_msoa"
#> [41] "store.dat.wrangled.shapefiles.ew_msoa_region"
#> [42] "store.dat.wrangled.shapefiles.uk_full"
#> [43] "store.dat.wrangled.shapefiles_ref"
#> [44] "store.dat.wrangled.shapefiles_ref.msoa"
#> [45] "store.dat.wrangled.time_use_survey"
#> [46] "store.dat.wrangled.time_use_survey.tus_dat"
#> [47] "store.dat.wrangled.time_use_survey_ref"
#> [48] "store.dat.wrangled.time_use_survey_ref.tus_dat"
#> [49] "store.out"
#> [50] "store.out.dirs"
#> [51] "store.out.dirs.activities"
#> [52] "store.out.dirs.base"
#> [53] "store.out.nm_patterns"
#> [54] "store.out.nm_patterns.activities"
#> [55] "store.save"
#> [56] "store.save.imputed_tus_dat"