get_param_strict: Get package parameters and return error if they do not exist

Description Usage Arguments Value Examples

View source: R/tgconfig.R

Description

Get package parameters and return error if they do not exist

Usage

1
get_param_strict(param, package = NULL)

Arguments

param

parameter to get

package

package of the parameter (NULL if running from a package)

Value

value of param in package package and error if parameter no found

Examples

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

# try to get a parameter that doesn't exist
# get_param_strict('other_param', 'tgconfig') # would throw an error

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