NEWS for the htmlTable package
hidden.rgroup
& hidden_tspanner
in tidyHtmlTable
addHtmlTableStyle
and setHtmlTableTheme
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).css.cell
is properly applied to rownames, cell fillers and the actual cells of interest (may impact the final layout!)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 to tidyselect
syntax and as gather
/spread
have been replaced by pivot_longer
/pivot_wider
the default values have been updated in accordance with their defaults, e.g. rnames = "name"
and value = "value"
.tidyHtmlTable
: Sorting of rows is skipped as we may have situations with repeating inputs and this can easily be performed pre-function by calling dplyr::arrange
. This has furthermore the desirable feature that any custom sorting is retained.htmlTable.
pos.caption
now uses match.arg as expectedhtmlTable
with all the argumentshtmlTable.css.border
style option for allowing to choose border style. Also fixed bug with cgroup empty cells and vertical border.htmlTable.pretty_indentation
option for skipping the stripping of all the tabs that was required due to old Pandoc bug.attr(x, "html") <- TRUE
by default and UTF-8 encoding on all outputted strings to mimic the htmltools::HTML
function behavior.tidyHtmlTable
can now be used to choose a column for the rnames argumentchunk_output_type
in Rmd files in RStudiotidyHtmlTable
now accepts table function that allows switching to other table functionscss.header
style as using css.cell
wasn’t entirely intuitive (fixes issue #73)n.tspanner
now also accepts number of rgroup
scgroup
arguments as a listn.rgoup
bug with cssvector2string
- a convenience function when you want to output a vector into a stringdigits.nonzero
to txtRound
function that allows more digits with values close to zeroprint.htmlTable
when outputting a table using the viewer (Issue #61)txtRound
(Issue #35)css.cell
bug (Issue #54)htmlEscape
to default to FALSE
as some features depend on the ability to be able to send html formatted strings.htmltools::htmlEscape
- issue #40 (thanks Peter Konings)base::table
cgroup
bug with automated n.cgroup
calculationstxtRound
warningtxtInt
handles nsmall warning when working with non-atomic numbers (issue #23)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)concatHtmlTables
for merging multiple tables into one string element of class htmlTable
matrix
& data.frame
without any rows, i.e. empty (Thanks Peter Konings)ctable
argument (Thanks raredd)txtRound
now properly handles vector digits argumenttxtRound
is now a S3-function and handles data.frame
objects in a cleaner wayrgroup
srgroup
to accept matricesn.rgroup
/rgroup
are automaticaly completed with the last rows if sum(n.rgroup
) is less than the total number of rowsn.cgroup
/cgroup
<br>
-taginteractiveTable
for allowing tables with cells that have resizeable contentcss.table
for table element css stylingdata.frames
with factors - thanks Sergio Oller #4htmlTable
can now also accept vectorsformat.df
from Hmisc as it converted & to & with unexpected results. This functionality has also been superseeded by the txtRound function.rgroup
in case there is an interest of adding more data to that particular rowknit_print
implemented removing the need for results=‘asis’ except for within for-loopshtmlTable
teststxtRound
now also rounds character matriceshtmlTable
pos.caption
can now also be “below”rgroup
s mixed with ""txtRound
returns "" by default if value missing. This can also be specified with the txt.NA
optionhtmlTable
and associated txt-functions are now separated from GmischtmlTable
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 handle rnames = FALSE
in order to surpress rownameshtmlTable
now defaults to the layout of ctable
as this is the more commonly found layout among medical papershtmlTable
rgroup
has the additional padding.rgroup
for those that want to change the no-breaking space paddinghtmlTable
tfoot
is automatically run through txtMergeLines
in order to retain wrapped textsplitLines4Table
to txtMergeLines
, outputInt
to txtInt
, pvalueFormatter
to txtPval
and these follow now the argument style of htmlTable
txtRound
for rounding matrices. The problem with round()
is that 1.01 rounds to 1 instead of “1.0” that is wanted for output.