Validate a config list
validate_config.Rd
validate_config
checks the values of the given config list. If any values
are missing or invalid, they are set to default values.
Examples
validate_config(config = list())
#> Warning: These config fields are missing/invalid and will be set to
#> defaults:
#>
#> - 'current_population' set to 100,000
#> - 'avg_5yr_population' set to 'current_population'
#> - 'rounding_decimals' set to 2
#> - 'generate_csvs' set to TRUE
#> $current_population
#> [1] 1e+05
#>
#> $avg_5yr_population
#> [1] 1e+05
#>
#> $rounding_decimals
#> [1] 2
#>
#> $generate_csvs
#> [1] TRUE
#>