tests/testthat/examples/knitr-examples/096-knit-exit.md

We can exit a document early using the knit_exit() function.

Below is a simple chunk, and there is a time-consuming chunk after it.

library(knitr)
1 + 1
## [1] 2
knit_exit()


Try the parsermd package in your browser

Any scripts or data that you put into this service are public.

parsermd documentation built on Aug. 21, 2025, 5:27 p.m.