current_input

0th

Percentile

Query the current input filename

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

Usage
current_input(dir = FALSE)
Arguments
dir

whether to prepend the current working directory to the file path (i.e. return an absolute path or a relative path)

Value

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

Aliases
  • current_input
Documentation reproduced from package knitr, version 1.16, License: GPL

Community examples

Looks like there are no examples yet.