current_input: Query the current input filename

Description Usage Arguments Value

View source: R/utils.R

Description

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

Usage

1

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.


yihui/knitr documentation built on Dec. 11, 2018, 3:41 a.m.