Print a huxtable on screen
Arguments
- ht
A huxtable.
- ...
Passed on to
to_screen
.- min_width
Minimum width in on-screen characters of the result.
- max_width
Maximum width in on-screen characters of the result. Overrides
min_width
.- compact
Logical. To save space, don't print lines for empty horizontal borders.
- colnames
Logical. Whether or not to print colum names.
- color
Logical. Whether to print the huxtable in color (requires the
crayon
package).
Details
Screen display shows the following features:
Table and caption positioning
Merged cells
Cell alignment
Borders
Cell background and border color (if the "crayon" package is installed)
Text color, bold and italic (if the "crayon" package is installed)
Cell padding, widths and heights are not shown.
See also
Other printing functions:
print_html()
,
print_latex()
,
print_md()
,
print_rtf()
,
print_typst()
Examples
bottom_border(jams)[1, 1:2] <- 1
bold(jams)[1, 1:2] <- TRUE
jams <- map_text_color(
jams,
by_regex("berry" = "red")
)
print_screen(jams)
#> Type Price
#> ────────────────────────
#> Strawberry 1.90
#> Raspberry 2.10
#> Plum 1.80
#>
#> Column names: Type, Price