NEWS for the htmlTable package
- Minor test improvement (PR #89)
- Updated JQuery dependency in interactiveTable to 3.7.1
- Dropped reshape in favor of pivot_wider (issue #88)
- Updated JQuery dependency in interactiveTable (issue #85)
- The
txtRound.data.frame
converted all data to a matrix before rounding all elements. Changed to only convert numeric variables and also added tidy-select syntax. The function now returns the entire inputdata.frame
with rounded elements as requested. - The
txtMergeLines
now returns anknitr::asis_output
if html mode is activated. Fixed also multiline strings conversion into latex/html format. - Added vignette for the text formatting functions.
- Added
rnames_unique
parameter totidyHtmlTable
so that rows can have non-unique names
- The
txtInt
handlesNA
more gracefully.
- Added
htmlTable_args
attribute for making modifications to the final table easier
- Added options for how the empty spacer cell appears (see
addHtmlTableStyle()
spacer.* options) - Fixed ignored
align.header
- Fix for wrapped styles (issue #80)
- Fix for txtRound not handling negative numbers (issue #76)
- Fix bug for
hidden.rgroup
&hidden_tspanner
intidyHtmlTable
- Documentation improvements & switched to markdown docs
- Added theming and styling with
addHtmlTableStyle
andsetHtmlTableTheme
to reduce the cognitive burden of finding the right option within the docs. Note: this may impact your current tables and hence the major version (2.0.0). - Changed so that
css.cell
is properly applied to rownames, cell fillers and the actual cells of interest (may impact the final layout!) - Breaking change
tidyHtmlTable
: Moved to a fully tidyverse compatible system with tidyHtmlTable. This is a breaking change to the API as we switch from columns as strings totidyselect
syntax and asgather
/spread
have been replaced bypivot_longer
/pivot_wider
the default values have been updated in accordance with their defaults, e.g.rnames = "name"
andvalue = "value"
. - Breaking change
tidyHtmlTable
: Sorting of rows is skipped as we may have situations with repeating inputs and this can easily be performed pre-function by callingdplyr::arrange
. This has furthermore the desirable feature that any custom sorting is retained. - Added mso-number-format to help (Issue #63) - thanks Rasmus Hertzum
- txtRound can now add txtInt when formatting the integer section for easier readability
- Added htmlTable css options - they should all start with
htmlTable.
pos.caption
now uses match.arg as expected- Fixed proper S3 function definition for
htmlTable
with all the arguments - Added
htmlTable.css.border
style option for allowing to choose border style. Also fixed bug with cgroup empty cells and vertical border. - Added
htmlTable.pretty_indentation
option for skipping the stripping of all the tabs that was required due to old Pandoc bug. - Added
attr(x, "html") <- TRUE
by default and UTF-8 encoding on all outputted strings to mimic thehtmltools::HTML
function behavior. - For simple tibble output the
tidyHtmlTable
can now be used to choose a column for the rnames argument - The print statement now respects the
chunk_output_type
in Rmd files in RStudio tidyHtmlTable
now accepts table function that allows switching to other table functions- Added
css.header
style as usingcss.cell
wasn't entirely intuitive (fixes issue #73)
- Prepared for R 4.0
- Bug fix for cgroup as list argument
- The
n.tspanner
now also accepts number ofrgroup
s
- Added the ability to have
cgroup
arguments as a list - Fixed
n.rgoup
bug with css - Improved the general vignette
- Added
vector2string
- a convenience function when you want to output a vector into a string - Added
digits.nonzero
totxtRound
function that allows more digits with values close to zero - Force encoding for
print.htmlTable
when outputting a table using the viewer (Issue #61)
- Added scientific notation to
txtRound
(Issue #35)
- Fix $ MathJax bug (Issue #57)
- Fix single-row
css.cell
bug (Issue #54)
- Set
htmlEscape
to default toFALSE
as some features depend on the ability to be able to send html formatted strings.
- Removed tidyr and dplyr from dependencies (issue #47)
- Strings are now escaped using
htmltools::htmlEscape
- issue #40 (thanks Peter Konings) - Tidy data interface - issue #42 (thanks Stephen Gragg)
- Fixed bug with rownames styling (thanks Shira Mitchell)
- Added conversion of dimnames into row/column labels
- Added detection of sum row/colum when using
base::table
- fixed
cgroup
bug with automatedn.cgroup
calculations - fixed output to viewport when not in RStudio notebook (thanks Peter Konings)
- fixed vector input for
txtRound
warning
txtInt
handles nsmall warning when working with non-atomic numbers (issue #23)- fixed output for RStudio notebook (issue #26)
txtRound
now throws an error when provided a too short vector of digits (thanks Peter Konings)css.cell
has improved docs and added checkmate to verify format (thanks maverickg)- Added
concatHtmlTables
for merging multiple tables into one string element of classhtmlTable
- Fixed CRAN bugs in dev version
- Added ability to print
matrix
&data.frame
without any rows, i.e. empty (Thanks Peter Konings) - Added table border flexibility via the
ctable
argument (Thanks raredd) - Added option of having row-group separators for no-named row groups (Thanks, prof. Harrell)
- Fixed bug with outputting dates (issue #14)
- The
txtRound
now properly handles vector digits argument - The
txtRound
is now a S3-function and handlesdata.frame
objects in a cleaner way
- Added better description for how to use the add attribute for
rgroup
s - Extended the add attribute for
rgroup
to accept matrices - The
n.rgroup
/rgroup
are automaticaly completed with the last rows if sum(n.rgroup
) is less than the total number of rows - Similar applies to
n.cgroup
/cgroup
- Fixed the line-merge so that all new lines get an
<br>
-tag - Added an
interactiveTable
for allowing tables with cells that have resizeable content - Added
css.table
for table element css styling
- Handles
data.frames
with factors - thanks Sergio Oller #4
- Prepared for API-changes with stringr 1.0
- The txtRound can now handle vectors and single values
- Fixed table counter update
- The
htmlTable
can now also accept vectors - Removed the
format.df
from Hmisc as it converted & to & with unexpected results. This functionality has also been superseeded by the txtRound function.
- Added the option of having an attribute on the
rgroup
in case there is an interest of adding more data to that particular row - Added a fix for the pandoc tab bug
knit_print
implemented removing the need for results='asis' except for within for-loops- Removed the capitalize tspanner css as this may cause confusion with limited word processor compatibility
- Added
htmlTable
tests txtRound
now also rounds character matrices- Added a detailed vignette with the primary features of
htmlTable
- Added the option of having a total row
- The
pos.caption
can now also be "below" - Fixed minor bug with numbering not beeing turned off with options(table_counter = FALSE)
- Zebra striping now works for
rgroup
s mixed with "" txtRound
returns "" by default if value missing. This can also be specified with thetxt.NA
option
- The
htmlTable
and associated txt-functions are now separated from Gmisc - Argument name changes for
htmlTable
for better consistency and logic:rowname
->rnames
headings
->header
halign
->align.header
cgroup.just
->align.cgroup
rgroupCSSstyle
->css.rgroup
rgroupCSSseparator
->css.rgroup.sep
tspannerCSSstyle
->css.tspanner
tspannerCSSseparator
->css.tspanner.sep
tableCSSclass
->css.table.class
rowlabel.pos
->pos.rowlabel
caption.loc
->pos.caption
altcol
->col.rgroup
htmlTable
can now handlernames = FALSE
in order to surpress rownameshtmlTable
now defaults to the layout ofctable
as this is the more commonly found layout among medical papershtmlTable
rgroup
has the additionalpadding.rgroup
for those that want to change the no-breaking space paddinghtmlTable
tfoot
is automatically run throughtxtMergeLines
in order to retain wrapped text- Renamed
splitLines4Table
totxtMergeLines
,outputInt
totxtInt
,pvalueFormatter
totxtPval
and these follow now the argument style ofhtmlTable
- Added
txtRound
for rounding matrices. The problem withround()
is that 1.01 rounds to 1 instead of "1.0" that is wanted for output. - Multiple bug-fixes