rbsb3k: assigns the constants for the rbsb layer

Description Usage Arguments Details Value Examples

View source: R/f0.rbsb1.code.r

Description

defines or returns the constants used within /rbsb00/. The performed action depends on the argument.

Usage

1
rbsb3k(whi)

Arguments

whi

a character(1) indicating either to reset or to return the names or the current values. The three values are RESET, reset, names, definitions or values.

Details

All constant names start with 'rbsb.'. This solution was adopted to replace a set of global constants that I had difficulty to make acceptable with R packages standards. It is recommended not to modify these constants unless you are completely aware of the consequences.
The constants can be any object type.
Notice that two constants rbsb.null and rbsb.pko must be updated by the package3k function of children packages of /rbsb/.

Value

When whi=="RESET" nothing (but the assignments are performed for all layers: only rbsb since it is the first one.).
When whi=="reset" nothing (but the assignments of the layer rbsb are performed).
When whi=="names" the names as a character vector.
When whi=="definitions" the definitions as a named character vector.
When whi=="values" the values through a named list.

Examples

1
2
3
4
 rbsb3k("reset");
 print(rbsb.msi);
 rbsb3k("names");
 rbsb3k("values");

rbsb documentation built on May 2, 2019, 4:41 p.m.

Related to rbsb3k in rbsb...