We have built a site using rmarkdown::render_site() function. Our site works and renders correctly. However, if there is an error in any of the Markdown files that comprise the site, it will error out. The site is built using something similar to the documentation found below,
https://bookdown.org/yihui/rmarkdown/rmarkdown-site.html
Even if there is an error in one of the files, we would like the file to finish running and output an html file. We have tried adding the following code to the top of each Markdown file per this solution.
knitr::opts_chunk$set(
echo = TRUE,
error = TRUE)
However, when these files run using the rmarkdown::render_site()
function, the files will stop if there's an error. Does anyone know a fix around this?