an example of knit_exit() (yihui/knitr#524)
update from Hmisc