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")
  }
}

Try the kableExtra package in your browser

Any scripts or data that you put into this service are public.

kableExtra documentation built on June 22, 2024, 10:59 a.m.