print_list: Print Attribute Value Pairs as a Table

View source: R/rmd_table.R

print_listR Documentation

Print Attribute Value Pairs as a Table

Description

Print user-provided attribute-value pairs in a clean table format.

Usage

print_list(
  ...,
  exclude_colnames = TRUE,
  align = c("l", "l"),
  full_width = FALSE,
  position = "left",
  htmltable_class = "lightable-minimal"
)

Arguments

...

Named list to print.

exclude_colnames

Include "Attribute" and "Value" names?, Default: TRUE

align

Column alignment: a character vector consisting of 'l' (left), 'c' (center) and/or 'r' (right). By default or if align = NULL, numeric columns are right-aligned, and other columns are left-aligned. If length(align) == 1L, the string will be expanded to a vector of individual letters, e.g. 'clc' becomes c('c', 'l', 'c'), unless the output format is LaTeX.

full_width

A TRUE or FALSE variable controlling whether the HTML table should have 100\ the preferable format for full_width. If not specified, a HTML table will have full width by default but this option will be set to FALSE for a LaTeX table

position

This is the "real" or say floating position for the latex table environment. The kable only puts tables in a table environment when a caption is provided. That is also the reason why your tables will be floating around if you specify captions for your table. Possible choices are h (here), t (top, default), b (bottom) and p (on a dedicated page).

htmltable_class

Options to use the in-house lightable themes. Choices include lightable-minimal, lightable-classic, lightable-classic-2, lightable-material, lightable-striped and lightable-hover. If you have your customized style sheet loaded which defines your own table class, you can also load it here.

See Also

list2,parse_expr kbl,kable_styling


meerapatelmd/suzyBakeOven documentation built on March 30, 2022, 1:44 p.m.