Load paramters as variables to the current environment (or any other environment envir)

load_params_to_env(params, package = NULL, envir = parent.frame())

Arguments

params

parameters to load

package

package

envir

environment to load to

Value

invisibly returns the changed environment

Examples

#> $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 #>
load_params_to_env(c('expr_param', 'boolean_param'), 'tgconfig') expr_param
#> [1] 1 2 3 4 5
boolean_param
#> [1] TRUE