Skip to content

kableExtra

Construct Complex Table with 'kable' and Pipe Syntax

v1.4.0 · Jan 24, 2024 · MIT + file LICENSE

Description

Build complex HTML or 'LaTeX' tables using 'kable()' from 'knitr' and the piping syntax from 'magrittr'. Function 'kable()' is a light weight table generator coming from 'knitr'. This package simplifies the way to manipulate the HTML or 'LaTeX' codes generated by 'kable()' and allows users to construct complex tables and customize styles using a readable syntax.

Downloads

CRAN

194.7K

Last 30 days

243rd

613.5K

Last 90 days

2.2M

Last year

Trend: -6.2% (30d vs prior 30d)

r2u CRAN

2.3K

Last 30 days

4.3K

Last 90 days

15.9K

Last year

Trend: +171% (30d vs prior 30d)

autoCRAN

7

Last 7 days

24

Last 30 days

1

All-time

autoCRAN-only: this name is served only by autoCRAN, so the count is exact.

CRAN Check Status

2 ERROR
11 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang ERROR
r-devel-linux-x86_64-fedora-gcc ERROR
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK
Check details (2 non-OK)
ERROR r-devel-linux-x86_64-fedora-clang

re-building of vignette outputs

Error(s) in re-building vignettes:
--- re-building ‘awesome_table_in_html.Rmd’ using rmarkdown
--- finished re-building ‘awesome_table_in_html.Rmd’

--- re-building ‘awesome_table_in_pdf.Rmd’ using rmarkdown
! Undefined control sequence.
\tabu@cleanup ...bu@naturalX =\tabu@naturalX@save 
                                                  \let \tabu@naturalXmax \ta...
l.706 \end{tabu}

Error: processing vignette 'awesome_table_in_pdf.Rmd' failed with diagnostics:
LaTeX failed to compile /data/gannet/ripley/R/packages/tests-clang/kableExtra.Rcheck/vign_test/kableExtra/vignettes/awesome_table_in_pdf.tex. See https://yihui.org/tinytex/r/#debugging for debugging tips. See awesome_table_in_pdf.log for more info.
--- failed re-building ‘awesome_table_in_pdf.Rmd’

--- re-building ‘best_practice_for_newline_in_latex_table.Rmd’ using rmarkdown
--- finished re-building ‘best_practice_for_newline_in_latex_table.Rmd’

--- re-building ‘legacy_features.Rmd’ using rmarkdown
--- finished re-building ‘legacy_features.Rmd’

--- re-building ‘use_kable_in_shiny.Rmd’ using rmarkdown
--- finished re-building ‘use_kable_in_shiny.Rmd’

SUMMARY: processing the following file failed:
  ‘awesome_table_in_pdf.Rmd’

Error: Vignette re-building failed.
Execution halted
ERROR r-devel-linux-x86_64-fedora-gcc

re-building of vignette outputs

Error(s) in re-building vignettes:
--- re-building ‘awesome_table_in_html.Rmd’ using rmarkdown
--- finished re-building ‘awesome_table_in_html.Rmd’

--- re-building ‘awesome_table_in_pdf.Rmd’ using rmarkdown
! Undefined control sequence.
\tabu@cleanup ...bu@naturalX =\tabu@naturalX@save 
                                                  \let \tabu@naturalXmax \ta...
l.706 \end{tabu}

Error: processing vignette 'awesome_table_in_pdf.Rmd' failed with diagnostics:
LaTeX failed to compile /data/gannet/ripley/R/packages/tests-devel/kableExtra.Rcheck/vign_test/kableExtra/vignettes/awesome_table_in_pdf.tex. See https://yihui.org/tinytex/r/#debugging for debugging tips. See awesome_table_in_pdf.log for more info.
--- failed re-building ‘awesome_table_in_pdf.Rmd’

--- re-building ‘best_practice_for_newline_in_latex_table.Rmd’ using rmarkdown
--- finished re-building ‘best_practice_for_newline_in_latex_table.Rmd’

--- re-building ‘legacy_features.Rmd’ using rmarkdown
--- finished re-building ‘legacy_features.Rmd’

--- re-building ‘use_kable_in_shiny.Rmd’ using rmarkdown
--- finished re-building ‘use_kable_in_shiny.Rmd’

SUMMARY: processing the following file failed:
  ‘awesome_table_in_pdf.Rmd’

Error: Vignette re-building failed.
Execution halted

Additional Issues

M1mac Details →

Check History

ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Jun 4, 2026
ERROR r-devel-linux-x86_64-fedora-gcc

re-building of vignette outputs

Error(s) in re-building vignettes:
--- re-building ‘awesome_table_in_html.Rmd’ using rmarkdown
--- finished re-building ‘awesome_table_in_html.Rmd’

--- re-building ‘awesome_table_in_pdf.Rmd’ using rmarkdown
! Undefined control sequence.
\tabu@cleanu
...[truncated]...
atures.Rmd’

--- re-building ‘use_kable_in_shiny.Rmd’ using rmarkdown
--- finished re-building ‘use_kable_in_shiny.Rmd’

SUMMARY: processing the following file failed:
  ‘awesome_table_in_pdf.Rmd’

Error: Vignette re-building failed.
Execution halted
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Reverse Dependencies (421)

depends

suggests

AHPWR AHPtools APCalign BSTFA BayesPPD BayesianMCPMod BeeBDC BioPred BrazilCrime CNVreg COMMA CTNote CaMeA CausalMixGPD Characterization CoNI DiscreteFDR Distance ECOTOXr Ecfun EcoEnsemble EvoPhylo FAVA FielDHub FlyingR FrailtyCompRisk FuzzyPovertyR GCEstim GCubeR GIFT GapAnalysis GaussSuppression HVT Hmisc IPEDSuploadables LLMR LMN LearnVizLMM LexisNexisTools LikertMakeR LocalCop LongDat MPI MRG MSEtool MachineShop Markovchart MiRKAT Mmcsd MultiATSM NMsim NeEDS4BigData OSLdecomposition OlinkAnalyze OlinkAnalyzeVignettes OmicsQC Open.Visualization.Academy PERSUADE PMLE4SCR PROsetta PUMP PlackettLuce PointedSDMs PracTools PredTest ProActive ProTrackR2 PubMatrixR PublicationBiasBenchmark QuantileNPCI REDCapDM REDCapExporter REDCapR RJafroc RKorAPClient RMSTpowerBoost RRphylo RTSA Rediscover Rraven SDMtune SESraster SangerTools SightabilityModel SimTOST SingleCaseES Slick SmallCountRounding SpatialRDD StepReg TestDesign Tplyr TrialSimulator VARshrink VirtualPop WARDEN WASP XYomics ZIprop acledR aedseo afdx agrobox aldvmm allofus archetyper baRulho behaviorchange bfbin2arm biodosetools biomod2 bsitar bullseye card censobr chmsflow circumplex clayringsmiletus cleanepi clustTMB cmfrec cnefetools cols4all concstats contrast convergEU cosmic covid19br cramR csdm ctxR dabestr dampack dataspice dedupewider derivmkts diffEnrich discord dropR drugdevelopR dscore dtlg easytable eat ecorisk educabR emburden envsetup epitraxr estar evapoRe ezECM fairmetrics fastTS fastml faux fgeo fjohansen flexFitR flowTraceR fluffy fluxtools fonctionr funMoDisco funkyheatmap gMCPLite gaawr2 galah gasper geocmeans geospatialsuite ggfacto gglyph gimap goodpractice growthTrendR grwat gsDesign gsDesign2 gtsummary hassediagrams hesim heterocop hydraulics iNZightPlots ibawds idiogramFISH iheiddown inequantiles injurytools inlpubs insee interlineaR ipolygrowth ir isocat isotree jSDM jtools klassR lab2clean ldt letsR likelihoodTools litteR loewesadditivity logitr maat marginaleffects mashr mda.biber medicalcoder medrxivr memor metabolic metadeconfoundR mfrmr mimsy mlr3fairness modelsummary mpathsenser mpmaggregate mstATA mutSignatures mvMAPIT mverse myClim neodistr nipnTK nuts oldr openeo outliertree pRecipe parseLatex pcutils pedalfast.data pedtools pharmaRTF pikchr pinochet plsmselect power.nb prefviz public.ctn0094data public.ctn0094extra qra quadcleanR quallmer quarto rCISSVAE rcausim readepi realestatebr reappraised recometrics redlist regextable regmedint repello repfun replacer reservoirnet rfm ricu rirods risk.assessr riskdiff riskscores rms rxode2 ryandexdirect savvyr scDiffCom scf scoringutils sdbuildR shinyExprPortal simhelpers simphony sotkanet spNetwork spant sparseMVN sparseR spatialGE spsur ssmodels staRdom standby stats19 stgam stoichUtilities sugarglider summarytools surveyPrev surveytable suwo svmodt table1 tables tabr tangram.pipe tatoo tcpl test.assessr texPreview tidyfit tidytlg tramnet tsaux tsgc unusualprofile vivaldi warbleR whereami wrProteo xtranat yamlet zlog

Dependency Network

Dependencies Reverse dependencies knitr magrittr stringr xml2 rmarkdown scales viridisLite htmltools rstudioapi digest svglite vtable AssumpSure BayesFBHborrow CCMnet CIfinder DQAstats DedooseR EasyStat ExPanDaR GWASinspector LifeInsureR MEAanalysis OhdsiReportGenerator PFIM ProAE +406 more reverse deps kableExtra

Version History

23 tracked
new 1.4.0 Mar 10, 2026
updated 1.4.0 ← 1.3.4 diff Jan 23, 2024
updated 1.3.4 ← 1.3.2 diff Feb 19, 2021
updated 1.3.2 ← 1.3.1 diff Feb 13, 2021
updated 1.3.1 ← 1.3.0 diff Oct 21, 2020
updated 1.3.0 ← 1.2.1 diff Oct 21, 2020
updated 1.2.1 ← 1.1.0 diff Aug 26, 2020
updated 1.1.0 ← 1.0.1 diff Mar 15, 2019
updated 1.0.1 ← 1.0.0 diff Jan 21, 2019
updated 1.0.0 ← 0.9.0 diff Jan 15, 2019
updated 0.9.0 ← 0.8.0 diff May 20, 2018
updated 0.8.0 ← 0.7.0 diff Apr 5, 2018
updated 0.7.0 ← 0.6.1 diff Jan 14, 2018
updated 0.6.1 ← 0.6.0 diff Oct 31, 2017
updated 0.6.0 ← 0.5.2 diff Oct 23, 2017