g4n3k: assigns the constants for the g4n layer

Description Usage Arguments Details Value Examples

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

Description

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

Usage

1
g4n3k(whi)

Arguments

whi

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

Details

All constant names start with 'g4n.'. 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.

Value

When whi=="RESET" nothing (but the assignments are performed for all layers rbsb and g4n). When whi=="reset" nothing (but the assignments of the layer g4n 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
 g4n3k("RESET"); # needed only for R checking, to be forgotten
 print(g4n.msi);
 g4n3k("names");
 g4n3k("values");

g4n documentation built on May 2, 2019, 5:47 p.m.

Related to g4n3k in g4n...