fig_store: Store Values

View source: R/fig_functions.R

fig_storeR Documentation

Store Values

Description

These functions allow storing values in the global fig instance.

Usage

fig_store(key, value)

fig_store_list(l)

fig_store_many(...)

Arguments

key

A key to store a value for.

value

A value to be stored.

l

(named list) Names are used as keys for storing their values.

...

Named arguments. Names are used as keys for storing argument values.

Value

Reference to self. Other methods can be chained after this one.

Examples

fig_store("foo", 1)
fig_store("bar", 123)$store("baz", list(1, 2, 3))
fig_store("x.y", "a")
fig_store_list(list(foo = 123, bar = "abc"))
fig_store_many("foo" = 1, "bar" = 2)
fig_store_many("foo.bar.baz" = 1)
fig_store_many("foo" = "a", "baz" = 123)

fig documentation built on March 31, 2022, 5:05 p.m.