Include errors in R markdown package vignette
问题 I'm developing an R package and have a custom function which contains a if(condition) stop("Error message") conditional. I call this function in a package vignette with the intention of generating the error message and including that in the vignette. However, this is causing vignette building to fail. How can I force vignette building to proceed even when the code generates error messages, and retain those error messages in the vignette document? 回答1: The knitr chunk options documentation