View source: R/fig_functions.R
fig_store | R Documentation |
These functions allow storing values in the global fig instance.
fig_store(key, value) fig_store_list(l) fig_store_many(...)
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. |
Reference to self. Other methods can be chained after this one.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.