powered by
Defaults are used for new huxtables, and also when a property is set to NA.
NA
set_default_properties(...)get_default_properties(names = NULL)
get_default_properties(names = NULL)
For set_default_properties, a list of the previous property values, invisibly.
set_default_properties
For get_default_properties, a list of the current defaults.
get_default_properties
Properties specified by name, or a single named list.
Vector of property names. If NULL, all properties are returned.
NULL
Note that autoformat = TRUE in huxtable() overrides some defaults.
autoformat = TRUE
huxtable()
To set default border styles, use the pseudo-properties border/border_style/border_color. You cannot set defaults separately for different sides.
border
border_style
border_color
Options for autoformat in huxtable-options.
old <- set_default_properties( text_color = "red", border = 0.4 ) hux(a = 1:2, b = 1:2) set_default_properties(old) get_default_properties("bold")
Run the code above in your browser using DataLab