Set package parameter

set_param(param, value, package = NULL)

Arguments

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)

See also

register_param, get_param

Examples

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