Test the calling.handlers option.

knitr::opts_chunk$set(
  calling.handlers = list(error = hnd)
)
1 + ""


Try the knitr package in your browser

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

knitr documentation built on Sept. 11, 2024, 6:18 p.m.