Learn R Programming

litedown (version 0.7)

get_context: 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)

Value

If the item is provided, return its value in the context. If NULL, the whole context (an environment) is returned.

Arguments

item

The name of the context item.

Examples

Run this code
litedown::get_context("input")
litedown::get_context("format")
names(litedown::get_context())  # all available items

Run the code above in your browser using DataLab