Replies: 1 comment
-
The
To make that work, you must use the chunk options options(knitr.chunk.error = FALSE, knitr.chunk.message = NA, knitr.chunk.warning = NA) before calling |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am recently working on a task to catch any message (TRACE, DEBUG, INFO, WARN, ERROR, or FATAL) in the rmarkdown while rendering it.
My first idea was to put render inside tryCatchLog like
tryCatchLog(render("my.rmd"))
. However, this method cannot get any message within the rmd.Thus, I came up with the second idea. I try to insert the tryCatchLog in the evaluate.inline knitr::hook setting. I expect every line of code will be evaluated under tryCatchLog.
Nevertheless, this doesn't work alongside what I expect neither. It seems like the file is knit as usual (no tryCatchLog in the evaluate.inline).
Is that I misunderstand the mechanism of evaluate.inline?
I appreciate any comment or explanation!
Beta Was this translation helpful? Give feedback.
All reactions