knitr (version 1.7)

current_input: Query the current input filename

Description

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

Usage

current_input()

Arguments

Value

  • A character string, if this function is called inside an input document (otherwise NULL).