Note that huxtable attempts to follow semantic versioning (https://semver.org). Therefore, major version increments reflect backwards-incompatible API changes, not necessarily big changes.
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.