knit_exit: Exit knitting early

Description Usage Arguments Value Examples

View source: R/output.R

Description

Sometimes we may want to exit the knitting process early, and completely ignore the rest of the document. This function provides a mechanism to terminate knit().

Usage

1

Arguments

append

A character vector to be appended to the results from knit() so far. By default, this is \end{document} for LaTeX output, and </body></html> for HTML output, to make the output document complete. For other types of output, it is an empty string.

Value

Invisible NULL. An internal signal is set up (as a side effect) to notify knit() to quit as if it had reached the end of the document.

Examples

1
# see https://github.com/yihui/knitr-examples/blob/master/096-knit-exit.Rmd

yihui/knitr documentation built on Dec. 14, 2018, 6:22 p.m.