current_input {knitr} | R Documentation |
Returns the name of the input file passed to knit()
.
current_input(dir = FALSE)
dir |
whether to prepend the current working directory to the file path (i.e. return an absolute path or a relative path) |
A character string, if this function is called inside an input
document (otherwise NULL
).