output_table: Create a table, depending on the type of output format

View source: R/render_helpers.R

output_tableR Documentation

Create a table, depending on the type of output format

Description

Create a table, depending on the type of output format

Usage

output_table(
  x,
  format = theFormat,
  digits = 3,
  row.names = TRUE,
  escape = FALSE,
  align = c("l", rep("r", ncol(x))),
  longtable = FALSE,
  booktabs = FALSE,
  bootstrap_options = "hover",
  caption = NULL,
  latex_options = "repeat_header",
  linesep = "",
  ...,
  font_size = NULL,
  full_width = NULL
)

Arguments

x

A data frame. If it is a matrix, it gets turned into a data frame.

format

Either "pdf", "html" or "word".

digits, row.names, escape, align, font_size, full_width, longtable, booktabs, bootstrap_options, caption

Passed through (or not) to kable or flextable, or not at all. They're named arguments because passing them through as dots causes errors because kable and flextable allow different things in via the dots.

Details

It kind of works for html and pdf, not really tested for Word. It is very limited in terms of the options available.


harrysouthworth/render documentation built on May 31, 2024, 11:18 a.m.