Better Tables with knitr::kable()

· Yihui Xie · Sept. 21, 2026, 5:47 a.m.
Summary
This blog post discusses recent enhancements to the `kable()` function from the knitr package, which allows the creation of HTML and LaTeX tables in R. The improvements focus on accessibility features, correct typesetting of numeric columns, customizable caption positions in LaTeX, and better handling of whitespace and NA values in tables. The author, Yihui Xie, highlights features that improve user experience and accessibility for screen readers while presenting data.
AUTHOR