v0.3.1
New features
-
We now have the
force_sign
argument in several numeric formatting functions (fmt_number()
,fmt_integer()
,fmt_scientific()
,fmt_engineering()
,fmt_percent()
,fmt_currency()
, andfmt_bytes()
). This makes it possible to force the appearance of the positive sign for positive values (#773). (#793) -
It's now possible to add padding to the column labels and heading locations in HTML tables with two new arguments added to
tab_options()
:column_labels.padding
andheading.padding
. Several options already exist for easily changing the vertical padding of certain locations, so, these additions make it possible to fully alter to the padding from top to bottom (without resorting to using CSS) (#770). (#795) -
The
whitespace
argument has been added tocell_text()
and this provides many options for making whitespace easier to handle in HTML output tables (#714). (#797)
Minor improvements and bug fixes
-
Fixed LaTeX rendering for tables that have a stub; now data row cells are correctly laid out.
-
LaTeX output tables now properly render summary rows. In addition, grand summary rows are now rendered in LaTeX outputs (previously, grand summary rows were ignored). This clears the long-standing issue in #625. (#768)
-
Titles and optional subtitles in LaTeX output tables have an improved appearance, and the underlying code was rewritten to guard against more edge cases that might lead to failing LaTeX output. (#779)
-
The
data
argument in thecols_label()
andcols_width()
functions was renamed to.data
to avoid a partial matching issue (raised in #715). (#772) -
Fixed a bug where styles may not be applied correctly to summary row cells in HTML output tables (#752). (#782)
-
Incorporated the full use of X11 color names for styling HTML tables. Now, named colors like
gray50
won't throw an error. Additionally, CSS3 colors that have no equivalent in X11 (likeCrimson
andRebeccaPurple
) will now also just work (#712). (#787) -
Fixed a bug that occurs in the following rare circumstance: when using
summary_rows()
with no stub, a new column is generated internally and given the name rowname; but this can conflict with a column that has the same name, generating duplicate column names and not erroring at that instant (#749). (#792) -
The image generation functions
local_image()
andweb_image()
are enhanced such that multiple image paths/URLs can now be handled without errors. Thanks, @primaj for the initial work on this in #738. Fixes #510. (#803) -
Fixed a bug that occurs when using a
font
with thecell_text()
along with other styles. Fixes #661 and #802. (#805) -
Implemented a fix for the situation where
tab_style()
is used along withcells_summary()
as a location and, also,row_group_order()
is used to reorder row groups. This resulted in a non-application of the style to the targeted summary cells (#812). (#814)