KH.set: Save a new value for module environment.

Description Usage Arguments Details Value Note See Also Examples

View source: R/Config.R

Description

Save a new value for module environment.

Usage

1
KH.set(variable, value)

Arguments

variable

string. Name of the variable or function to change.

value

mixed. New value of the object.

Details

In order to change a default value or function definition, set the value using this method. It stops if a foreign key is requested

Value

mixed. New value of the variable.

Note

Use this only to redefine a variable. It could not be used to create a variable.

See Also

Other Config: Configuration, KH.get

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
KH.set('defaultFont', 'B Nazanin')
#[1] "B Nazanin"

KH.set('decimal', 3)
#[1] 3
## Not run: 
KH.set('new_var', 2)

KH.set('hello', function(){print('hello')})
# function(){print("hello")}

## End(Not run)

ks465/r-utils documentation built on May 23, 2019, 5:07 p.m.