Note that huxtable attempts to follow semantic versioning (https://semver.org). Therefore, major version increments reflect backwards-incompatible API changes, not necessarily big changes.
quick_latex()
function.texreg
package now includes a huxtablereg
function, analogous to huxreg
, which outputs a huxtable from a list of regressions. This will be available from the next version of texreg
.flextable
package and recent versions of Pandoc. (Powerpoint printing requires Pandoc >= 2.4.0.)position()
allow text wrapping around tables.set_outer_border_colors()
and set_outer_border_styles()
functions, like set_outer_borders()
.broom
package, instead using the generics
package. If you use huxreg()
, you will still need e.g. broom
or broom.mixed
to provide tidy()
and glance()
methods for specific models.tidy.tidy_override()
and glance.tidy_override()
should work even if underlying object has no tidy()
or glance()
method.echo = TRUE
in Rmd pdf_document format.caption()
and height()
weren’t playing nicely.mutate(..., copy_cell_props = FALSE)
was adding a column named copy_cell_props
.check_latex_dependencies
and install_latex_dependencies
gave misleading errors.stars
is NULL
in huxreg
, don’t print a note by default.tinytex
when available, allowing autoinstallation of latex packages.map_xxx
functions to set properties variably by cell values.by_rows
, by_values
, by_ranges
, by_quantiles
etc.tidy_override
function to override p values etc. in huxreg
.set_contents
function to change huxtable contents within dplyr pipes.install_latex_dependencies()
or tlmgr
if it is not already on your system.huxtable()
and friends, add_rownames = "Colname"
now sets the name for the new column.set_xxx
functions is deprecated, as is the where
function. Use map_xxx
instead.byrow
is soft-deprecated. Use by_cols()
instead.wrap=TRUE
caused squeezed text in RTF.TeX code was getting escaped by pandoc. To avoid this, if possible, huxtable now adds fenced code blocks round latex tables (see https://pandoc.org/MANUAL.html#extension-raw_attribute). You must add
md_extensions: +raw_attribute
to your YAML header for this to work, and you will need a recent (> 2.0.0) version of Pandoc.
print_rtf
, to_rtf
and quick_rtf
functions.border_style
properties to set “solid”, “double”, “dotted” or “dashed” borders. (At present, LaTeX only allows “solid” or “double”.)merge_cells
function, an alternative interface to colspan
and rowspan
.quick_pptx
function to print data frames and huxtables into Powerpoint.install_latex_dependencies
and check_latex_dependencies
utility functions.add_rows
and add_columns
now accept data frames as arguments.theme_mondrian
theme :-Dprint_md
now handles bold and italic cells.quick_pdf
has new width
and height
options to change paper size.print_screen
and print_md
would hang with a wide huxtable.tribble_hux
function wrapping tibble::tribble()
for readable data input.add_rows
and add_columns
functions to insert one or more rows into the middle of a huxtable.is_a_number
is deprecated.hux_logo()
;-)format
method which returns the result of to_html
, to_latex
etc. as appropriate.to_html
printing e.g. “left-border: NA;” in cell CSS.set_all_*
not working when huxtable is not attached.as_Workbook
failing with non-numeric width
.hux_logo
was using multiple fonts, fails with Excel output.as_flextable
borders not working in cells with colspan > 1.theme_plain
theme.add_colnames
is going to become TRUE
. At present it remains FALSE
. Set options("huxtable.add_colnames")
to TRUE
or FALSE
to set the default and avoid warnings in future.quick_*
functions now automatically open documents if used interactively. Use open = FALSE
to avoid.pad_decimal
is deprecated in favour of align(ht) <- "."
.huxreg
continues with a warning if statistics
are unavailable for some models.knit_print.data.frame
methods. This means that bare data frames will be pretty-printed via huxtable if the package is loaded.
options("huxtable.knit_print_df")
to FALSE
if you don’t want this.theme_plain
theme. Set options(“huxtable.knit_print_df_theme”) to a different one-argument function if you want to use a different theme.autoformat
argument lets huxtable()
and as_huxtable()
automatically choose alignment and number format based on column type. Set options("huxtable.autoformat")
to FALSE
to turn off this feature by default.number_format
has changed from “%5.3g” to “%.3g”, which no longer space-pads numbers.as_flextable
now does not print column names in the header. This matches the standard huxtable behaviour whereby headers are “just another row/column”. To get the old behaviour, use colnames_to_header = TRUE
.add_colnames
.huxreg
was never using built-in confidence intervals.number_format
, huxreg
, as_hux.table
, as_flextable
.openxlsx
package.quick_xlsx
function.set_*
column specifications: e.g. set_bold(ht, 1:3, matches(“ab”), TRUE)after
argument to insert_column
.quick_*
functions: when the file
argument is not explicitly specified, confirm overwrites manually, or fail if called non-interactively.tidy_args
argument to huxreg allows per-model customization of the call to tidy
.quick_xxx
functions without an explicit file
argument throw an error if called non-interactively, and prompt before overwriting files if called interactively.number_format
to exponents in scientific notation.quick_pdf
error when moving output across filesystems.quick_html
, quick_pdf
and quick_docx
functions to print table-like objects to a new document.to_screen
only shows colnames if there are any non-zero-length column names.number_format
now applies to any number-like substrings in cells. This means you can include e.g. significance stars in a cell and still use number_format
to format the content.number_format
is NA, numbers are unchanged.number_format
has changed from “%5.2f” to “%5.3g”, which plays nicer with integers but may surprise you by using scientific format for large numbers.outer_borders
argument for huxreg
. This changes default behaviour slightly.border
argument for add_footnote
to choose width of footnote’s top border.set_outer_borders
now accepts the same row/column arguments as other set_
functions.align
, position
and caption_pos
.huxreg
.set_outer_borders
function to set borders round a rectangle of cells.to_screen
and to_md
now respect wrap
and col_widths
properties.to_screen
and to_md
gain a min_width
argument; to_md
gains a logical header
argument; to_screen
gains a compact
argument replacing blank = NULL
.crayon
package is installed. New huxtable.color_screen
option.ReporteRs
to officer
and flextable
. No more RJava
horror.error_format
argument to huxreg
for flexible control over uncertainty estimates.collapse
, borders
, blank
and colname_color
from to_screen
/print_screen
.as_FlexTable
is deprecated and calls as_flextable
with a warning. header_rows
and footer_rows
arguments are ignored. If you need this feature, tell me.huxreg
:
ci_level
is NULL
by default. Set it to a number to calculate confidence intervals.error_style
is deprecated with a warning in favour of error_format
.{stars}
not %stars%
to display significance levels in the note
argument.borders
becomes a number specifying border width. Set to 0 for no borders.insert_row
and insert_column
.latex_float
property allows you to change positioning in LaTeX.caption_pos
.set_default_properties
function to set default properties for new huxtables.huxreg
.huxreg
function to convert a list of models to a huxtable.subset
, and filling in values by row.$<-
, [<-
and [[<-
now work better.set_cell_properties
to set multiple properties on cells.evens
, odds
, everywhere
, every(n, from)
, final(n)
, where(cond)
: convenience functions to select rows, columns and cells.ReporteRs
.filter
and select
.guess_knitr_output_format
.huxreg
.theme_minimal
has been renamed theme_basic
to avoid a name clash with ggplot2
.NEWS.md
file to track changes to the package.