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.frameconverted 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.framewith rounded elements as requested. - The
txtMergeLinesnow returns anknitr::asis_outputif html mode is activated. Fixed also multiline strings conversion into latex/html format. - Added vignette for the text formatting functions.
- Added
rnames_uniqueparameter totidyHtmlTableso that rows can have non-unique names
- The
txtInthandlesNAmore gracefully.
- Added
htmlTable_argsattribute 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_tspannerintidyHtmlTable - Documentation improvements & switched to markdown docs
- Added theming and styling with
addHtmlTableStyleandsetHtmlTableThemeto 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.cellis 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 totidyselectsyntax and asgather/spreadhave been replaced bypivot_longer/pivot_widerthe 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.captionnow uses match.arg as expected- Fixed proper S3 function definition for
htmlTablewith all the arguments - Added
htmlTable.css.borderstyle option for allowing to choose border style. Also fixed bug with cgroup empty cells and vertical border. - Added
htmlTable.pretty_indentationoption for skipping the stripping of all the tabs that was required due to old Pandoc bug. - Added
attr(x, "html") <- TRUEby default and UTF-8 encoding on all outputted strings to mimic thehtmltools::HTMLfunction behavior. - For simple tibble output the
tidyHtmlTablecan now be used to choose a column for the rnames argument - The print statement now respects the
chunk_output_typein Rmd files in RStudio tidyHtmlTablenow accepts table function that allows switching to other table functions- Added
css.headerstyle as usingcss.cellwasn't entirely intuitive (fixes issue #73)
- Prepared for R 4.0
- Bug fix for cgroup as list argument
- The
n.tspannernow also accepts number ofrgroups
- Added the ability to have
cgrouparguments as a list - Fixed
n.rgoupbug with css - Improved the general vignette
- Added
vector2string- a convenience function when you want to output a vector into a string - Added
digits.nonzerototxtRoundfunction that allows more digits with values close to zero - Force encoding for
print.htmlTablewhen outputting a table using the viewer (Issue #61)
- Added scientific notation to
txtRound(Issue #35)
- Fix $ MathJax bug (Issue #57)
- Fix single-row
css.cellbug (Issue #54)
- Set
htmlEscapeto default toFALSEas 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
cgroupbug with automatedn.cgroupcalculations - fixed output to viewport when not in RStudio notebook (thanks Peter Konings)
- fixed vector input for
txtRoundwarning
txtInthandles nsmall warning when working with non-atomic numbers (issue #23)- fixed output for RStudio notebook (issue #26)
txtRoundnow throws an error when provided a too short vector of digits (thanks Peter Konings)css.cellhas improved docs and added checkmate to verify format (thanks maverickg)- Added
concatHtmlTablesfor merging multiple tables into one string element of classhtmlTable - Fixed CRAN bugs in dev version
- Added ability to print
matrix&data.framewithout any rows, i.e. empty (Thanks Peter Konings) - Added table border flexibility via the
ctableargument (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
txtRoundnow properly handles vector digits argument - The
txtRoundis now a S3-function and handlesdata.frameobjects in a cleaner way
- Added better description for how to use the add attribute for
rgroups - Extended the add attribute for
rgroupto accept matrices - The
n.rgroup/rgroupare 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
interactiveTablefor allowing tables with cells that have resizeable content - Added
css.tablefor table element css styling
- Handles
data.frameswith 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
htmlTablecan now also accept vectors - Removed the
format.dffrom 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
rgroupin case there is an interest of adding more data to that particular row - Added a fix for the pandoc tab bug
knit_printimplemented 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
htmlTabletests txtRoundnow also rounds character matrices- Added a detailed vignette with the primary features of
htmlTable - Added the option of having a total row
- The
pos.captioncan now also be "below" - Fixed minor bug with numbering not beeing turned off with options(table_counter = FALSE)
- Zebra striping now works for
rgroups mixed with "" txtRoundreturns "" by default if value missing. This can also be specified with thetxt.NAoption
- The
htmlTableand associated txt-functions are now separated from Gmisc - Argument name changes for
htmlTablefor better consistency and logic:rowname->rnamesheadings->headerhalign->align.headercgroup.just->align.cgrouprgroupCSSstyle->css.rgrouprgroupCSSseparator->css.rgroup.septspannerCSSstyle->css.tspannertspannerCSSseparator->css.tspanner.septableCSSclass->css.table.classrowlabel.pos->pos.rowlabelcaption.loc->pos.captionaltcol->col.rgroup htmlTablecan now handlernames = FALSEin order to surpress rownameshtmlTablenow defaults to the layout ofctableas this is the more commonly found layout among medical papershtmlTablergrouphas the additionalpadding.rgroupfor those that want to change the no-breaking space paddinghtmlTabletfootis automatically run throughtxtMergeLinesin order to retain wrapped text- Renamed
splitLines4TabletotxtMergeLines,outputInttotxtInt,pvalueFormattertotxtPvaland these follow now the argument style ofhtmlTable - Added
txtRoundfor rounding matrices. The problem withround()is that 1.01 rounds to 1 instead of "1.0" that is wanted for output. - Multiple bug-fixes