knitr_current_input: Query the current input filename

View source: R/rmarkdown.R

knitr_current_inputR Documentation

Query the current input filename

Description

Returns the name of the input file passed to knit().

Usage

knitr_current_input(dir = FALSE)

Arguments

dir

Boolean; whether to prepend the current working directory to the file path, i.e. whether to return an absolute path or a relative path.

Value

A character string, if this function is called inside an input document. Otherwise NULL.


the-mad-statter/washu documentation built on May 5, 2024, 10:26 a.m.