View source: R/fig_functions.R
fig_get | R Documentation |
These functions allow retrieving values stored in the global fig instance.
fig_get(key) fig_get_many(...) fig_get_all()
key |
A key to retrieve a value for. |
... |
Keys to retrieve values for. |
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.
A value associated with provided key
.
An unnamed list of values associated with keys provided in ...
.
An unnamed list of all stored values.
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()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.