Test the calling.handlers option.

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


yihui/knitr documentation built on Nov. 14, 2024, 3:14 p.m.