tinytable
  • Tutorial (HTML)
    • Tiny Tables
    • Formatting
    • Style
    • Groups and labels
    • Plots and images
    • Themes
    • Customization
    • Notebooks
    • Tips and Tricks
  • Tutorial (PDF)
  1. Functions
  2. print
  • Tutorial
    • Tiny tables
    • Format
    • Style
    • Group labels
    • Plots and images
    • Themes
    • Customization
    • Notebooks
    • Tips and tricks
    • Alternatives
  • Tutorial (PDF)
  • Functions
    • tt
    • format_tt
    • style_tt
    • theme_tt
    • group_tt
    • plot_tt
    • save_tt
    • print
    • rbind2
  • News
  • License
  • Citation

On this page

  • Print, display, or convert a tinytable object
    • Description
    • Usage
    • Arguments
    • Value
  1. Functions
  2. print

Print, display, or convert a tinytable object

Description

This function is called automatically by R whenever a tinytable object is anprinted to the console or in an HTML viewer pane.

Usage

## S3 method for class 'tinytable'
print(x, output = get_option("tinytable_print_output", default = NULL), ...)

Arguments

x A data frame or data table to be rendered as a table.
output

format in which a Tiny Table is printed: NULL or one of “latex”, “markdown”, “html”, “typst”, “dataframe”. If NULL, the output is chosen based on these rules:

  • When called from a script in non-interactive mode, the default is "markdown" (interactive() == FALSE).

  • When called interactively in RStudio, the default is to display an HTML table in the viewer pane.

  • When called interactively in another development environment, the default is "markdown".

  • The default print output can be changed for an entire R session by calling: options(tinytable_print_output = “html”)

  • The default print output can be changed for a single tinytable object by modifying the output S4 slot.

… Other arguments are ignored.

Value

launch a browser window or cat() the table to console.

save_tt
rbind2