| 1 |
% Generated by roxygen2: do not edit by hand |
| 2 |
% Please edit documentation in R/output.R |
| 3 |
\name{knit_exit} |
| 4 |
\alias{knit_exit} |
| 5 |
\title{Exit knitting early} |
| 6 |
\usage{ |
| 7 |
knit_exit(append, fully = TRUE) |
| 8 |
} |
| 9 |
\arguments{ |
| 10 |
\item{append}{A character vector to be appended to the results from |
| 11 |
\code{knit()} so far. By default, this is \samp{\end{document}} for LaTeX |
| 12 |
output, and \samp{</body></html>} for HTML output, to make the output |
| 13 |
document complete. For other types of output, it is an empty string.} |
| 14 |
|
| 15 |
\item{fully}{Whether to fully exit the knitting process if \code{knit_exit()} |
| 16 |
is called from a child document. If \code{FALSE}, only exit the knitting |
| 17 |
process of the child document.} |
| 18 |
} |
| 19 |
\value{ |
| 20 |
Invisible \code{NULL}. An internal signal is set up (as a side |
| 21 |
effect) to notify \code{knit()} to quit as if it had reached the end of the |
| 22 |
document. |
| 23 |
} |
| 24 |
\description{ |
| 25 |
Sometimes we may want to exit the knitting process early, and completely |
| 26 |
ignore the rest of the document. This function provides a mechanism to |
| 27 |
terminate \code{\link{knit}()}. |
| 28 |
} |
| 29 |
\examples{ |
| 30 |
# see https://github.com/yihui/knitr-examples/blob/master/096-knit-exit.Rmd |
| 31 |
} |