powered by
Print a huxtable on screen
print_screen(ht, ...)to_screen(ht, ...)# S3 method for huxtable to_screen( ht, min_width = ceiling(getOption("width")/6), max_width = getOption("width", Inf), compact = TRUE, colnames = TRUE, color = getOption("huxtable.color_screen", default = TRUE), ... )
to_screen(ht, ...)
# S3 method for huxtable to_screen( ht, min_width = ceiling(getOption("width")/6), max_width = getOption("width", Inf), compact = TRUE, colnames = TRUE, color = getOption("huxtable.color_screen", default = TRUE), ... )
to_screen returns a string. print_screen prints the string and returns NULL.
to_screen
print_screen
NULL
A huxtable.
Passed on to to_screen.
Minimum width in on-screen characters of the result.
Maximum width in on-screen characters of the result. Overrides min_width.
min_width
Logical. To save space, don't print lines for empty horizontal borders.
Logical. Whether or not to print colum names.
Logical. Whether to print the huxtable in color (requires the crayon package).
crayon
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, nor are border styles.
Other printing functions: print_html(), print_latex(), print_md(), print_rtf()
print_html()
print_latex()
print_md()
print_rtf()
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)
Run the code above in your browser using DataLab