set_param: Set package parameter

Description Usage Arguments See Also Examples

View source: R/tgconfig.R

Description

Set package parameter

Usage

1
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

1
2
3
4
5
6
register_param('param1', 'tgconfig')
set_param('param1', 'value1', 'tgconfig')
get_param('param1', 'tgconfig')

# try to set a parameter that doesn't exist
# set_param('other_param', 'tgconfig') # would thorw an error

tanaylab/tgconfig documentation built on Nov. 5, 2019, 9:59 a.m.