yihui / knitr-examples

A collection of knitr examples
487 stars 587 forks source link

knit.exit() for only this chunk #59

Open jcolomb opened 6 years ago

jcolomb commented 6 years ago

knit_exit() will end the knitting at the end of the chunk and not immediately, you may want to make it clear in the example.

It would be cool if there was a way to stop the one chunk we are knitting while the next chunks will still be knitted, similar to a stop() function in a loop.