R/set_knitr_options.R

Defines functions set_knitr_options

Documented in set_knitr_options

#' 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,
    ...
  )
}
enixam/ymisc documentation built on Nov. 22, 2022, 1:31 a.m.