Package: huxtable 5.5.7

huxtable: Easily Create and Style Tables for LaTeX, HTML and Other Formats

Creates styled tables for data presentation. Export to HTML, LaTeX, RTF, 'Word', 'Excel', and 'PowerPoint'. Simple, modern interface to manipulate borders, size, position, captions, colours, text styles and number formatting. Table cells can span multiple rows and/or columns. Includes a 'huxreg' function for creation of regression tables, and 'quick_*' one-liners to print data to a new document.

Authors:David Hugh-Jones [aut, cre]

huxtable_5.5.7.tar.gz
huxtable_5.5.7.zip(r-4.5)huxtable_5.5.7.zip(r-4.4)huxtable_5.5.7.zip(r-4.3)
huxtable_5.5.7.tgz(r-4.4-any)huxtable_5.5.7.tgz(r-4.3-any)
huxtable_5.5.7.tar.gz(r-4.5-noble)huxtable_5.5.7.tar.gz(r-4.4-noble)
huxtable_5.5.7.tgz(r-4.4-emscripten)huxtable_5.5.7.tgz(r-4.3-emscripten)
huxtable.pdf |huxtable.html
huxtable/json (API)
NEWS

# Install 'huxtable' in R:
install.packages('huxtable', repos = c('https://hughjonesd.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/hughjonesd/huxtable/issues

Datasets:
  • jams - Prices of 3 jams

On CRAN:

htmlhuxtablelatexmicrosoft-wordpowerpointreproducible-researchtables

14.14 score 321 stars 15 packages 2.0k scripts 14k downloads 1 mentions 302 exports 22 dependencies

Last updated 2 months agofrom:25717e378b (on v5.5.7-rc1). Checks:OK: 1 NOTE: 6. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 01 2024
R-4.5-winNOTENov 01 2024
R-4.5-linuxNOTENov 01 2024
R-4.4-winNOTENov 01 2024
R-4.4-macNOTENov 01 2024
R-4.3-winNOTENov 01 2024
R-4.3-macNOTENov 01 2024

Exports:[<-.brdradd_colnamesadd_columnsadd_footnoteadd_rownamesadd_rowsalignalign<-as_flextableas_huxas_huxtableas_Workbookbackground_colorbackground_color<-boldbold<-bottom_borderbottom_border_colorbottom_border_color<-bottom_border_stylebottom_border_style<-bottom_border<-bottom_border<-.huxtablebottom_paddingbottom_padding<-brdrbrdr_thicknessby_casesby_colorspaceby_colsby_equal_groupsby_functionby_quantilesby_rangesby_regexby_rowsby_valuescaptioncaption_poscaption_pos<-caption_widthcaption_width<-caption<-check_latex_dependenciescol_widthcol_width<-colspancolspan<-column_to_headercontentscontents<-escape_contentsescape_contents<-evenseverywherefinalfmt_percentfmt_prettyfontfont_sizefont_size<-font<-get_default_propertiesglanceguess_knitr_output_formatheader_colsheader_cols<-header_rowsheader_rows<-heightheight<-huxhux_logohuxreghuxtableinsert_columninsert_rowinstall_latex_dependenciesis_huxis_huxtableitalicitalic<-labellabel<-latex_floatlatex_float<-left_borderleft_border_colorleft_border_color<-left_border_styleleft_border_style<-left_border<-left_border<-.huxtableleft_paddingleft_padding<-map_alignmap_all_border_colorsmap_all_border_stylesmap_all_bordersmap_all_paddingmap_background_colormap_boldmap_bottom_bordermap_bottom_border_colormap_bottom_border_stylemap_bottom_paddingmap_colspanmap_contentsmap_escape_contentsmap_fontmap_font_sizemap_italicmap_left_bordermap_left_border_colormap_left_border_stylemap_left_paddingmap_lr_border_colorsmap_lr_border_stylesmap_lr_bordersmap_lr_paddingmap_markdownmap_na_stringmap_number_formatmap_right_bordermap_right_border_colormap_right_border_stylemap_right_paddingmap_rotationmap_rowspanmap_tb_border_colorsmap_tb_border_stylesmap_tb_bordersmap_tb_paddingmap_text_colormap_top_bordermap_top_border_colormap_top_border_stylemap_top_paddingmap_valignmap_wrapmarkdownmarkdown<-merge_acrossmerge_cellsmerge_downmerge_repeated_rowsna_stringna_string<-number_formatnumber_format<-oddspositionposition<-print_htmlprint_latexprint_mdprint_notebookprint_rtfprint_screenquick_docxquick_htmlquick_latexquick_pdfquick_pptxquick_rtfquick_xlsxreport_latex_dependenciesrestack_acrossrestack_downright_borderright_border_colorright_border_color<-right_border_styleright_border_style<-right_border<-right_border<-.huxtableright_paddingright_padding<-rotationrotation<-row_heightrow_height<-rowspanrowspan<-rtf_fc_tablessanitizeset_alignset_all_border_colorsset_all_border_stylesset_all_bordersset_all_paddingset_background_colorset_boldset_bottom_borderset_bottom_border_colorset_bottom_border_styleset_bottom_paddingset_captionset_caption_posset_caption_widthset_cell_propertiesset_col_widthset_colspanset_contentsset_default_propertiesset_escape_contentsset_fontset_font_sizeset_header_colsset_header_rowsset_heightset_italicset_labelset_latex_floatset_left_borderset_left_border_colorset_left_border_styleset_left_paddingset_lr_border_colorsset_lr_border_stylesset_lr_bordersset_lr_paddingset_markdownset_markdown_contentsset_na_stringset_number_formatset_outer_border_colorsset_outer_border_stylesset_outer_bordersset_outer_paddingset_positionset_right_borderset_right_border_colorset_right_border_styleset_right_paddingset_rotationset_row_heightset_rowspanset_table_environmentset_tabular_environmentset_tb_border_colorsset_tb_border_stylesset_tb_bordersset_tb_paddingset_text_colorset_top_borderset_top_border_colorset_top_border_styleset_top_paddingset_valignset_widthset_wrapsplit_acrosssplit_downstripestripe_columnsstripe_rowsstyle_cellsstyle_header_colsstyle_header_rowsstyle_headerstable_environmenttable_environment<-tabular_environmenttabular_environment<-text_colortext_color<-theme_articletheme_basictheme_bluetheme_brighttheme_compacttheme_greentheme_greytheme_mondriantheme_orangetheme_plaintheme_stripedtidytidy_overridetidy_replaceto_htmlto_latexto_mdto_rtfto_screentop_bordertop_border_colortop_border_color<-top_border_styletop_border_style<-top_border<-top_border<-.huxtabletop_paddingtop_padding<-tribble_huxvalignvalign<-widthwidth<-wrapwrap<-

Dependencies:assertthatbase64enccachemclicommonmarkdigestfansifastmapgenericsgluehtmltoolslifecyclemagrittrmemoiseR6rlangstringistringrtidyselectvctrswithrxml2

{Huxtable themes - HTML version

Rendered fromthemes-html.html.asisusingR.rsp::asison Nov 01 2024.

Last update: 2024-06-30
Started: 2024-06-30

Design principles, comparisons and limitations - HTML version

Rendered fromdesign-principles-html.html.asisusingR.rsp::asison Nov 01 2024.

Last update: 2024-06-30
Started: 2024-06-30

Design principles, comparisons and limitations - PDF version

Rendered fromdesign-principles-pdf.pdf.asisusingR.rsp::asison Nov 01 2024.

Last update: 2024-06-30
Started: 2024-06-30

Introduction to huxtable - HTML version

Rendered fromhuxtable-html.html.asisusingR.rsp::asison Nov 01 2024.

Last update: 2024-06-30
Started: 2024-06-30

Introduction to huxtable - PDF version

Rendered fromhuxtable-pdf.pdf.asisusingR.rsp::asison Nov 01 2024.

Last update: 2024-06-30
Started: 2024-06-30

Regression tables with huxreg - HTML version

Rendered fromhuxreg-html.html.asisusingR.rsp::asison Nov 01 2024.

Last update: 2024-06-30
Started: 2024-06-30

Regression tables with huxreg - PDF version

Rendered fromhuxreg-pdf.pdf.asisusingR.rsp::asison Nov 01 2024.

Last update: 2024-06-30
Started: 2024-06-30

Readme and manuals

Help Manual

Help pageTopics
Quick introduction to huxtablehuxtable-package
Subset a huxtable$<-.huxtable [.huxtable [<-.huxtable [[<-.huxtable
Add column or row namesadd_colnames add_colnames.huxtable add_rownames add_rownames.huxtable
Add a row with a footnoteadd_footnote
Insert one huxtable into anotheradd_columns add_rows
Set the horizontal alignment of cell contentalign align<- map_align set_align
Convert a huxtable for Word/Powerpointas_flextable as_flextable.huxtable
Convert objects to huxtablesas_hux as_huxtable as_huxtable.default as_huxtable.grouped_df is_hux is_huxtable
Convert a huxtable for Excelas_Workbook as_Workbook.huxtable
Set cell background colorbackground_color background_color<- map_background_color set_background_color
Make cell text bold or italicbold bold<- italic italic<- map_bold map_italic set_bold set_italic
Set border colorsborder-colors bottom_border_color bottom_border_color<- left_border_color left_border_color<- map_bottom_border_color map_left_border_color map_right_border_color map_top_border_color right_border_color right_border_color<- set_bottom_border_color set_left_border_color set_right_border_color set_top_border_color top_border_color top_border_color<- `bottom_border_color<-` `left_border_color<-` `right_border_color<-` `top_border_color<-`
Set border stylesborder-styles bottom_border_style bottom_border_style<- left_border_style left_border_style<- map_bottom_border_style map_left_border_style map_right_border_style map_top_border_style right_border_style right_border_style<- set_bottom_border_style set_left_border_style set_right_border_style set_top_border_style top_border_style top_border_style<- `bottom_border_style<-` `left_border_style<-` `right_border_style<-` `top_border_style<-`
Set bordersborders bottom_border bottom_border<- bottom_border<-.huxtable left_border left_border<- left_border<-.huxtable map_bottom_border map_left_border map_right_border map_top_border right_border right_border<- right_border<-.huxtable set_bottom_border set_left_border set_right_border set_top_border top_border top_border<- top_border<-.huxtable `bottom_border<-` `left_border<-` `right_border<-` `top_border<-`
Create a border objectbrdr
Get thickness of a 'brdr()' objectbrdr_thickness
Map cell contents to properties using 'case_when'by_cases
Map numeric cell contents smoothly to colorsby_colorspace
Map cell contents to cell properties using a function or scaleby_function
Map numeric quantiles to cell propertiesby_equal_groups by_quantiles
Map numeric ranges to cell propertiesby_ranges
Map cells matching a string or regex to cell propertiesby_regex
Set cell properties by row or columnby_cols by_rows
Map specific cell values to cell propertiesby_values
Set the table captioncaption caption<- set_caption
Position the table's captioncaption_pos caption_pos<- set_caption_pos
Set the width of the table captioncaption_width caption_width<- set_caption_width
Combine rows or columnscbind.huxtable rbind.huxtable
Set the width of table columnscol_width col_width<- set_col_width
Convert a column to header rowscolumn_to_header
Escape or unescape text in cellsescape_contents escape_contents<- map_escape_contents set_escape_contents
Return the last n rows or columnsfinal
Format numbers as percentfmt_percent
Use 'prettyNum()' to format numbersfmt_pretty
Set the font for cell textfont font<- map_font set_font
Make text larger or smallerfont_size font_size<- map_font_size set_font_size
Guess knitr output formatguess_knitr_output_format
Mark rows or columns as headersheader_cols header_cols<- header_rows header_rows<- set_header_cols set_header_rows
Set the table heightheight height<- set_height
Huxtable logohux_logo
Create a huxtable to display model outputhuxreg
Create a huxtablehux huxtable tribble_hux
Frequently Asked Questions, including how to get helphuxtable-FAQ
Changes to the huxtable packagehuxtable-news
Package optionshuxtable-options
Insert a row or columninsert_column insert_row
Prices of 3 jamsjams
Print data frames in knitr using huxtableknit_print.data.frame
Print a huxtable within knitrknit_print.huxtable
Set a table label for external referencinglabel label<- set_label
Set the position of the table float in LaTeXlatex_float latex_float<- set_latex_float
How to set cell properties variably by cell contentsmapping-functions mapping_functions
Interpret cell content as markdownmap_markdown markdown markdown<- set_markdown
Merge cells across rows or down columnsmerge_across merge_down
Merge a range of cellsmerge_cells
Merge repeated rows into multirow cellsmerge_repeated_rows
Use dplyr verbs with huxtable objectsdplyr-verbs mutate mutate.huxtable
Change how NA values are printedmap_na_string na_string na_string<- set_na_string
Set how numbers are formatted in cellsmap_number_format number_format number_format<- set_number_format
Set paddingbottom_padding bottom_padding<- left_padding left_padding<- map_bottom_padding map_left_padding map_right_padding map_top_padding padding right_padding right_padding<- set_bottom_padding set_left_padding set_right_padding set_top_padding top_padding top_padding<-
Set the table's position with respect to surrounding contentposition position<- set_position
Create HTML representing a huxtableprint_html print_notebook to_html to_html.huxtable
Create LaTeX representing a huxtableprint_latex to_latex to_latex.huxtable
Create Markdown representing a huxtableprint_md to_md to_md.huxtable
Create RTF representing a huxtableprint_rtf to_rtf to_rtf.huxtable
Print a huxtable on screenprint_screen to_screen to_screen.huxtable
Format and print huxtables using a default methodformat.huxtable print.huxtable
Quickly print objects to a PDF, TeX, HTML, Microsoft Office or RTF documentquick-output quick_docx quick_html quick_latex quick_pdf quick_pptx quick_rtf quick_xlsx
Manage LaTeX dependencies for huxtablescheck_latex_dependencies install_latex_dependencies report_latex_dependencies
Restack huxtables across/down the pagerestack-across-down restack_across restack_down
Rotate text within cellsmap_rotation rotation rotation<- set_rotation
Set the height of table rowsrow_height row_height<- set_row_height
Different ways to select rows and columnsrowspecs
Create RTF font and color tablesrtf_fc_tables
Escape text for various formatssanitize
Set cell contentscontents contents<- map_contents set_contents
Default huxtable propertiesget_default_properties set_default_properties
Set cell contents, interpreting them as markdownset_markdown_contents
Set left, right, top and bottom propertiesmap_all_borders map_all_border_colors map_all_border_styles map_all_padding map_lr_borders map_lr_border_colors map_lr_border_styles map_lr_padding map_tb_borders map_tb_border_colors map_tb_border_styles map_tb_padding set-multiple set_all_borders set_all_border_colors set_all_border_styles set_all_padding set_lr_borders set_lr_border_colors set_lr_border_styles set_lr_padding set_tb_borders set_tb_border_colors set_tb_border_styles set_tb_padding
Set borders and padding around a rectangle of cellsset-outer set_outer_borders set_outer_border_colors set_outer_border_styles set_outer_padding
Extend cells over multiple rows and/or columnscolspan colspan<- map_colspan map_rowspan rowspan rowspan<- set_colspan set_rowspan spans
Split a huxtable into multiple huxtablessplit-across-down split_across split_down
Return every n row or column numbersevens every everywhere odds stripe
Set background color stripesstripes stripe_columns stripe_rows
Set multiple properties on headersset_cell_properties style-functions style_cells style_headers style_header_cols style_header_rows
Transpose a huxtablet.huxtable
Set the "table" environment in LaTeXset_table_environment table_environment table_environment<-
Set the table's tabular environment in LaTeXset_tabular_environment tabular_environment tabular_environment<-
Set the color of text in cellsmap_text_color set_text_color text_color text_color<-
Theme a huxtablethemes theme_article theme_basic theme_blue theme_bright theme_compact theme_green theme_grey theme_mondrian theme_orange theme_plain theme_striped
Change a model's 'tidy' outputglance.tidy_override nobs.tidy_override tidy.tidy_override tidy_override tidy_replace
Set the vertical alignment of cell contentmap_valign set_valign valign valign<-
Set the table widthset_width width width<-
Wrap cell content over multiple linesmap_wrap set_wrap wrap wrap<-