R/template.R

Defines functions template_tabularray

template_tabularray <- function(theme = "default") {
  out <- readLines(system.file("templates/tabularray_default.tex", package = "tinytable"))
  return(out)
  if (theme %in% c("default", "grid")) {
    out <- readLines(system.file("templates/tabularray_default.tex", package = "tinytable"))
  } else if (theme == "bootstrap") {
    out <- readLines(system.file("templates/tabularray_bootstrap.tex", package = "tinytable"))
  } else if (theme == "striped") {
    out <- readLines(system.file("templates/tabularray_default.tex", package = "tinytable"))
  } else if (theme == "void") {
    out <- readLines(system.file("templates/tabularray_void.tex", package = "tinytable"))
  } else if (theme == "grid") {
    out <- readLines(system.file("templates/tabularray_grid.tex", package = "tinytable"))
  }
}

Try the tinytable package in your browser

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

tinytable documentation built on Oct. 5, 2024, 5:06 p.m.