Override pre-set parameters from config file

override_params(config_file, package = NULL)

Arguments

config_file

yaml file with parameters and values

package

package

Examples

config_file <- example_config_file() register_params(config_file, 'tgconfig') get_package_params('tgconfig')
#> $param1 #> [1] "value1" #> #> $param2 #> [1] "value2" #> #> $char_param #> [1] "value" #> #> $expr_param #> [1] 1 2 3 4 5 #> #> $numeric_param #> [1] 500 #> #> $boolean_param #> [1] TRUE #>
override_params(system.file('config/override_example.yaml', package='tgconfig'), package='tgconfig') get_package_params('tgconfig')
#> $param1 #> [1] "value1" #> #> $param2 #> [1] "value2" #> #> $char_param #> [1] "user_char" #> #> $expr_param #> [1] "user_exp" #> #> $numeric_param #> [1] 700 #> #> $boolean_param #> [1] FALSE #>