R/auto_set_format.R

Defines functions auto_set_format

auto_set_format <- function() {
  if (knitr::is_latex_output()) {
    options(knitr.table.format = "latex")
  } else {
    options(knitr.table.format = "html")
  }
}
haozhu233/kableExtra documentation built on July 14, 2024, 4:48 p.m.