These functions print or return an HTML table. By default, to_html() and
print_html() prepend a <style> block defining basic CSS classes, while
as_html() attaches the same styles as an HTML dependency.
Usage
print_html(ht, dependencies = TRUE, ...)
print_notebook(ht, dependencies = TRUE, ...)
to_html(ht, dependencies = TRUE, ...)
as_html(ht, dependencies = TRUE, ...)
Value
to_html returns an HTML string. as_html wraps to_html and returns an
htmltools::HTML object. print_html prints the string and returns NULL.
print_notebook prints HTML output suitable for use in an
RStudio interactive notebook.
Arguments
ht
A huxtable.
dependencies
Logical. If TRUE, include the CSS styles or LaTeX
command definitions required by huxtables.
...
Arguments passed to methods. Not currently used.
See Also
Other printing functions:
print_latex(),
print_md(),
print_rtf(),
print_screen(),
print_typst()