get_context {litedown} | R Documentation |
Get the fuse()
context
Description
A helper function to query the fuse()
context (such as the input file path
or the output format name) when called inside a code chunk.
Usage
get_context(item = NULL)
Arguments
item |
The name of the context item. |
Value
If the item
is provided, return its value in the context. If
NULL
, the whole context (an environment) is returned.
Examples
litedown::get_context("input")
litedown::get_context("format")
names(litedown::get_context()) # all available items
[Package litedown version 0.7 Index]