gt
1.3.0Easily Create Presentation-Ready Display Tables
Overview
Build display tables from tabular data with an easy-to-use set of functions. With its progressive approach, we can construct display tables with a cohesive set of table parts. Table values can be formatted using any of the included formatting functions. Footnotes and cell styles can be precisely added through a location targeting system. The way in which 'gt' handles things for you means that you don't often have to worry about the fine details.
Install
Health
- OK2026-05-2113 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- ERROR2026-05-2012 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
- OK2026-04-2512 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- NOTE2026-04-1311 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- ERROR2026-03-3010 OK · 3 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
Show 1 earlier snapshots
- NOTE2026-03-1011 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Documentation
- Examples that run
- 100%
- Documented parameters
- 96%
- Return-value docs
- 96%
- References docs
- 0%
Downloads
Repository
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
Commits over time
Repository practices
9 development-tooling and community-health practices detected across 7 families in the upstream repository
Checks run against github.com/rstudio/gt on 2026-07-19.
Show all practices
Dependencies
and 174 more packages.
Code & Tests
- Cyclomatic complexity
- 2.0 median / 142 max
- Test cases
- 190 / 0.10 per code line
Test coverage
Line coverage
35%
Expression
38.9%
Tests / Examples
34.5% / 10% ex
Functions
1022 187 exported
Complexity
4.3 avg / 142 max
Call network
1022 nodes / 2859 edges
Call graph
Open call graph →Lowest coverage
1022 functions| Function | Cyclo | Coverage |
|---|---|---|
| adjust_luminance exp | 1 | 0% |
| as_gtable exp | 2 | 0% |
| as_word exp | 3 | 0% |
| cell_borders exp | 3 | 0% |
| cells_group exp | 1 | 0% |
| cells_source_notes exp | 1 | 0% |
Datasets
| Name | Class | Rows × Cols | Also ships in |
|---|---|---|---|
| constants | tbl_df/tbl/data.frame | 354 × 6 | – |
| countrypops | tbl_df/tbl/data.frame | 13,975 × 5 | – |
| exibble | tbl_df/tbl/data.frame | 8 × 9 | – |
| films | tbl_df/tbl/data.frame | 1,873 × 8 | – |
| gibraltar | tbl_df/tbl/data.frame | 1,431 × 10 | – |
| gtcars | spec_tbl_df/tbl_df/tbl/data.frame | 47 × 15 | – |
| illness | tbl_df/tbl/data.frame | 39 × 11 | – |
| metro | tbl_df/tbl/data.frame | 321 × 11 | – |
| nuclides | tbl_df/tbl/data.frame | 3,383 × 29 | – |
| peeps | tbl_df/tbl/data.frame | 100 × 14 | – |
| photolysis | tbl_df/tbl/data.frame | 34 × 10 | – |
| pizzaplace | tbl_df/tbl/data.frame | 49,574 × 7 | – |
| reactions | tbl_df/tbl/data.frame | 1,683 × 39 | – |
| rx_addv | tbl_df/tbl/data.frame | 291 × 20 | – |
| rx_adsl | tbl_df/tbl/data.frame | 182 × 14 | – |
| sp500 | spec_tbl_df/tbl_df/tbl/data.frame | 16,607 × 7 | – |
| sza | tbl_df/tbl/data.frame | 816 × 4 | – |
| towny | tbl_df/tbl/data.frame | 414 × 25 | – |
17 internal objects are bundled for the package's own use and not listed here.
People & History
19 releases. Pick two to compare their code metrics. R releases are shown for context.
- RR 4.6.0 released · 2026-04-24
- 1.3.0Latest
- 1.2.02025-12-16 · diff ↗
- 1.1.02025-09-24 · diff ↗
- RR 4.5.0 released · 2025-04-11
- 1.0.02025-04-05 · diff ↗
- 0.11.12024-10-04 · diff ↗
- 0.11.02024-07-10 · diff ↗
- RR 4.4.0 released · 2024-04-24
- 0.10.12024-01-18 · diff ↗
- 0.10.02023-10-07 · diff ↗
- RR 4.3.0 released · 2023-04-21
- 0.9.02023-03-31 · diff ↗
- 0.8.02022-11-17 · diff ↗
- 0.7.02022-08-25 · diff ↗
- 0.6.02022-05-24 · diff ↗
Show 11 earlier events
Package metadata
- First published
- 2020-03-31
- Total releases
- 19 / 6 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 4.1.0
- Bundled data
- 856 KB / 18 files
- Download size
- 3.3 MB
- Installed size
- not tracked yet
- With dependencies
- not tracked yet