I am batch-rendering a number of Rmd files in a loop using rmarkdown::render and I need to be able to get output even for those that have errors in inline code. I can't manually edit inline code to include things like try() so some kind of kniter hook is needed.
I tried writing an inline knit_hook that would catch inline code errors but that doesn't work because the expression is evaluated before it gets passed to the hook function.
Any suggestions would be very mcuh appreciated.
Thanks!