Home Comments Thread
New Thread

The lt Package: Lightweight HTML Tables for R (and Beyond) | /en/2026/07/lt-package/

giscus giscus 2026-07-12 07:02:08

Recently I have released a new package on CRAN: lt, short for lightweight tables (or less than). Its origin story is a small moment of shock. About two years ago a project required gt, so I ran …

https://yihui.org/en/2026/07/lt-package/

👍 1🎉 1🚀 1

4 Comments

chuxinyuan chuxinyuan 2026-07-12 17:54:30

按照 gglite 的命名套路,这个应该叫 gtlite 才对啊

friendly friendly 2026-08-22 02:58:53

Very nice! But how come you don't show any examples here?

yihui yihui 2026-08-22 14:32:41

The post mentioned the package site in the beginning:

you can learn more details and examples on the package site at pkg.yihui.org/lt/

There are a lot of examples on the site. Anyway, I just added a sample table to this post, too. Thanks for the suggestion!

friendly friendly 2026-08-22 20:13:18

My comment was mainly that neither the post I read nor the package site shows examples of how the tables actually render in HTML. That would be useful to anyone wanting to understand how the lt syntax actually works.

yihui yihui 2026-08-22 20:20:58

Unless you have JavaScript disabled in your browser, you should see all rendered tables in the examples, e.g., https://pkg.yihui.org/lt/examples/01-lt

friendly friendly 2026-08-23 15:59:01

OK now -- was mainly commenting that a live example might have been a bit more visible. e.g, in a README

yihui yihui 2026-08-24 15:30:42

I see. Unfortunately, Github's README.md is quite limited in rendering HTML content. In README, I can show a screenshot of a rendered table there at most, but can't show a live HTML table that is properly formatted. To see a real HTML table, you have to open an HTML page.

Sign in to join the discussion

Sign in with GitHub