File: current_input.Rd

package info (click to toggle)
r-cran-knitr 1.50%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,864 kB
  • sloc: makefile: 16; sh: 10; javascript: 8
file content (19 lines) | stat: -rw-r--r-- 560 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{current_input}
\alias{current_input}
\title{Query the current input filename}
\usage{
current_input(dir = FALSE)
}
\arguments{
\item{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 \code{NULL}.
}
\description{
Returns the name of the input file passed to \code{\link{knit}()}.
}