powered by
These functions print or return an HTML table. print_html also prepends a <style> block defining basic CSS classes.
print_html
<style>
print_html(ht, ...)print_notebook(ht, ...)to_html(ht, ...)as_html(ht, ...)
print_notebook(ht, ...)
to_html(ht, ...)
as_html(ht, ...)
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.
to_html
as_html
htmltools::HTML
NULL
print_notebook prints HTML output suitable for use in an RStudio interactive notebook.
print_notebook
A huxtable.
Arguments passed to methods. Not currently used.
Other printing functions: print_latex(), print_md(), print_rtf(), print_screen(), print_typst()
print_latex()
print_md()
print_rtf()
print_screen()
print_typst()
ht <- hux(a = 1:3, b = letters[1:3]) to_html(ht) as_html(ht)
Run the code above in your browser using DataLab