Debian Codegraph @

man/current_input.Rd

raw
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/utils.R
3 \name{current_input}
4 \alias{current_input}
5 \title{Query the current input filename}
6 \usage{
7 current_input(dir = FALSE)
8 }
9 \arguments{
10 \item{dir}{Boolean; whether to prepend the current working directory to the file path,
11 i.e. whether to return an absolute path or a relative path.}
12 }
13 \value{
14 A character string, if this function is called inside an input
15 document. Otherwise \code{NULL}.
16 }
17 \description{
18 Returns the name of the input file passed to \code{\link{knit}()}.
19 }