set_param.Rd
Set package parameter
set_param(param, value, package = NULL)
param | parameter to set. An error would be thrown if parameter is not registered. |
---|---|
value | value to set the parameter to |
package | package of the parameter (NULL if running from a package) |
register_param, get_param
register_param('param1', 'tgconfig') set_param('param1', 'value1', 'tgconfig') get_param('param1', 'tgconfig')#> [1] "value1"# try to set a parameter that doesn't exist # set_param('other_param', 'tgconfig') # would thorw an error