fig_get {fig} | R Documentation |
Retrieve Stored Values
Description
These functions allow retrieving values stored in the global fig instance.
Usage
fig_get(key)
fig_get_many(...)
fig_get_all()
Arguments
key |
A key to retrieve a value for. |
... |
Keys to retrieve values for. |
Details
These functions return values based on a following priority (highest to lowest). If value is not found, then it looks up next level in the precedence.
System environment variable (case sensitive)
Value manually set
For system environment lookup dots are replaced by underscores, e.g.
fig_get("foo.bar")
will look up foo_bar.
Value
A value associated with provided key
.
An unnamed list of values associated with keys provided in ...
.
An unnamed list of all stored values.
Examples
fig_store("foo", 1)
fig_get("foo")
fig_store("bar", list(baz = 2))
fig_get("bar.baz")
fig_configure(split_on = "")
fig_get("bar.baz") # == NULL
fig_store_many(foo = 1, bar = 2, baz = 3)
fig_get_many("foo", "bar")
fig_store_many(foo = 1, bar = 2, baz = 3)
fig_get_all()
[Package fig version 1.0.0 Index]