Package: htmlTable 2.5.0

htmlTable: Advanced Tables for Markdown/HTML

Tables with state-of-the-art layout elements such as row spanners, column spanners, table spanners, zebra striping, and more. While allowing advanced layout, the underlying css-structure is simple in order to maximize compatibility with common word processors. The package also contains a few text formatting functions that help outputting text compatible with HTML/LaTeX.

Authors:Max Gordon [aut, cre], Stephen Gragg [aut], Peter Konings [aut]

htmlTable_2.5.0.tar.gz
htmlTable_2.5.0.zip(r-4.7)htmlTable_2.5.0.zip(r-4.6)htmlTable_2.5.0.zip(r-4.5)
htmlTable_2.5.0.tgz(r-4.6-any)htmlTable_2.5.0.tgz(r-4.5-any)
htmlTable_2.5.0.tar.gz(r-4.7-any)htmlTable_2.5.0.tar.gz(r-4.6-any)
htmlTable_2.5.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
htmlTable/json (API)

# Install 'htmlTable' in R:
install.packages('htmlTable', repos = c('https://gforge.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/gforge/htmltable/issues

Datasets:
  • SCB - Average age in Sweden

On CRAN:

Conda:

knitrtable

15.46 score 79 stars 792 packages 1.3k scripts 208k downloads 4 mentions 24 exports 34 dependencies

Last updated from:30b7ecdd68. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK146
source / vignettesOK209
linux-release-x86_64OK155
macos-release-arm64OK86
macos-oldrel-arm64OK78
windows-develOK134
windows-releaseOK90
windows-oldrelOK168
wasm-releaseOK120

Exports:addHtmlTableStyleconcatHtmlTablesgetHtmlTableStylegetHtmlTableThemehasHtmlTableStylehighlightRowhtmlTablehtmlTableWidgethtmlTableWidgetOutputinteractiveTableoutputIntprepGroupCountspvalueFormatterrenderHtmlTableWidgetsetHtmlTableThemesplitLines4TabletblNoLasttblNoNexttidyHtmlTabletxtInttxtMergeLinestxtPvaltxtRoundvector2string

Dependencies:backportsbase64encbslibcachemcheckmateclidigestevaluatefastmapfontawesomefsgluehighrhtmltoolshtmlwidgetsjquerylibjsonliteknitrlifecyclemagrittrmemoisemimeR6rappdirsrlangrmarkdownrstudioapisassstringistringrtinytexvctrsxfunyaml

Building a complex table
Introduction | Basics | Example based upon Swedish statistics

Last update: 2026-04-21
Started: 2020-06-19

How-to use htmlTable
Basics | Table caption | Cell alignment | Advanced | Row groups | Row highlighting | Column spanners | Table spanners | Total row | Table numbering | Table footer | Zebra coloring (or banded colors) | Putting it all together

Last update: 2026-04-21
Started: 2014-12-21

Text formatters
txtRound | Single/vector values | Data frames | Matrix | txtInt | txtPval | txtMergeLines

Last update: 2022-01-04
Started: 2022-01-04

Using tidyHtmlTable
Introduction | Some Examples | Prepare Data | Output html table | Example 1 | Example 2

Last update: 2020-07-08
Started: 2017-11-27

Readme and manuals

Help Manual

Help pageTopics
Add/set css and other style optionsaddHtmlTableStyle appendHtmlTableStyle
Function for concatenating 'htmlTable()'sconcatHtmlTables
Get style options for objectgetHtmlTableStyle
Retrieve the 'htmlTable()' theme listgetHtmlTableTheme
Check if object has a style set to ithasHtmlTableStyle
Highlight matching rowshighlightRow highlight_row
Output an HTML tablehtmlTable htmlTable.default knit_print.htmlTable print.htmlTable
htmlTable with pagination widgethtmlTableWidget
Shiny bindings for htmlTableWidgethtmlTableWidget-shiny htmlTableWidgetOutput renderHtmlTableWidget
A simple function for joining two tables by their intersected columnsinnerJoinByCommonCols
An interactive table that allows you to limit the size of boxesinteractiveTable interactiveTable.htmlTable knit_print.interactiveTable print.interactiveTable
Merge columns into a tibbleprBindDataListIntoColumns
Convert all factors to characters to print them as they expectedprConvertDfFactors
Retrieves counts for rgroup, cgroup, & tspanner argumentsprepGroupCounts
Remove html entities from tableprEscapeHtml
Extract the elements and generate a table with unique elementsprExtractElementsAndConvertToTbl
Average age in SwedenSCB
Set or update theme for 'htmlTable()'setHtmlTableTheme
Gets the last table numbertblNoLast
Gets the next table numbertblNoNext
Generate an htmlTable using tidy data as inputtidyHtmlTable
SI or English formatting of an integertxtInt
A merges lines while preserving the line break for HTML/LaTeXtxtMergeLines
Formats the p-valuestxtPval
A convenient rounding functiontxtRound txtRound.data.frame txtRound.default txtRound.matrix txtRound.table
Collapse vector to stringvector2string