Improvements
- Updated RTF footnotes so they go in the document footer by default.
Bug fixes
- Fix issue where
*_structure
functions did not correctly parse strings containing quotes in some cases (#466)
Improvements
- Incorporate contents of
col_style_plan
in the creation of mock data.
Bug fixes
- Fixed issue where JSON conversion of
frmt_when
dropped quotes from strings - Avoid use of deprecated functionality in
dplyr::summarise()
Bug fixes
- Fixed issue where table stub indentation does not transfer to all output types
- Fixed issue where incomplete
body_plan
may error if the grouping variable is a factor
Bug fixes
- Fixed issue where
frmt_combine
couldn't process variable names surrounded by backticks - Fixed issue where
row_grp_plan
post space did not respectcol_style_plan
widths by adding newfill
argument toelement_block
. Thefill
argument controls whether post space values should be recycled for the cell's data width. For example, a cell width of 3 will be respected by the post space with the following syntax:element_block(post_space = "---", fill = FALSE)
. - Remove unused
border
argument inelement_block
. - Fixed bug where
row_grp_plan
splits on all grouping variables, even if not mentioned. Instead, the logic has been updated to split on those explicitly mentioned, similar topage_plan
- Fixed issue where padding and alignment is lost for non-HTML outputs via the
.unicode_ws
argument added toprint_to_gt()
andprint_mock_gt()
. This defaults toTRUE
but should be set toFALSE
for RTF outputs (until {gt} bug is resolved). - Fixed issue where
make_mock_data
could result in duplicate rows
New features:
- Improved column alignment capabilities (via
col_style_plan
). Alignment options now fall into two types: character (type = "char") and positional (type = "pos"). Positional alignment is new and allows for aligning across multiple positions. - Add
page_plan
for splitting tables across multiple pages - Add ability to add a group/label header via the
col_plan
Breaking changes:
- Name of the list component inside
row_grp_plan
that storesrow_grp_structure
s has been changed from "struct_ls" to "struct_list" to be consistent with other objects. This may impact compatibility with JSON files created using prior versions of {tfrmt}.
Bug fixes:
frmt_combine
no longer throws error if group variable is named "var"row_grp_plan
with post-space no longer throws error if character column contains NA values
- Fixed bugs with JSON read/write
- Added transformation capabilities to
frmt()
- Added a
NEWS.md
file to track changes to the package. - Added functionality to read/write tfrmts to JSON files
- Updates made to work with the newest version of dplyr