#' set common knitr options
#'
#' @param ... additional named arguments passed to knitr::opts_chunk$set()
#'
#' @export
set_knitr_options <- function(...) {
knitr::opts_chunk$set(
message = FALSE,
warning = FALSE,
fig.align = "center",
comment = "#>",
collapse = TRUE,
...
)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.