colorDF-global-options: Global options for colorDF

colorDF-global-optionsR Documentation

Global options for colorDF

Description

The behavior of colorful data frames can be influenced by a number of global options set with options(). All options and their defaults can be viewed with colorDF_options().

Usage

colorDF_options()

Details

The following global options are interpreted by functions in the colorDF package:

  • colorDF_n (default: 20): how many rows at maximum are printed (set to Inf to always show all rows).

  • colorDF_theme (default: "light"): theme assigned by default to the new objects by colorDF() (and also when passing a data frame directly to summary_colorDF()).

  • colorDF_tibble_style (default: FALSE): if TRUE, then only column will be shown which fit on the screen (much like in the default print method for tibbles.

  • colorDF_noitalic (default: FALSE): some terminals do not support italics and instead use video inverse. This will make some styles look really weird. If this option is set to TRUE at time that the colorDF package is loaded, then the italic style will be silently ignored. Changing this option will have no effect when set after the package is loaded, so best put it in your .Rprofile.

  • colorDF_sep: separator for the table columns

  • width: width of the terminal in characters

See Also

colorDF() on creating colorful data frames; df_style() on how to modify style of the colorful data frame; colorDF_themes() to list all themes; colorDF_themes_show() to view all themes.

Examples

## use the dark theme for a terminal with dark background
options(colorDF_theme="dark")
colorDF(mtcars)

colorDF documentation built on Sept. 26, 2022, 5:06 p.m.