get_context | R Documentation |
fuse()
contextA helper function to query the fuse()
context (such as the input file path
or the output format name) when called inside a code chunk.
get_context(item = NULL)
item |
The name of the context item. |
If the item
is provided, return its value in the context. If
NULL
, the whole context (an environment) is returned.
litedown::get_context("input")
litedown::get_context("format")
names(litedown::get_context()) # all available items
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.