get_context: Get the 'fuse()' context

View source: R/fuse.R

get_contextR 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

litedown documentation built on April 12, 2025, 1:34 a.m.