Skip to content

gt

1.3.0

Easily Create Presentation-Ready Display Tables

222packages depend
2.1Mdownloads / year
34.5%test coverage
13/13checks pass

Overview

About
Maintained by Richard IannoneFirst published 2020-03-3119 releasesCRAN page ↗GitHub ↗

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

CRAN checks
13OK
Slowest check: 9.1 min · r-devel-linux-x86_64-fedora-clang
Code health
Yes
Tests · ratio 0.10
34.5%
Coverage · measured lines
100%
Documentation · exports
20
Dependencies · direct
Check history
  • OK2026-05-21
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-05-20
    12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • OK2026-04-25
    12 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • NOTE2026-04-13
    11 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-03-30
    10 OK · 3 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
Show 1 earlier snapshots
  • NOTE2026-03-10
    11 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMENoVignettesNopkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
96%
Return-value docs
96%
References docs
0%

Downloads

2.1M
CRAN downloads in the past year
Rank #301 · ~5.7K/day · ~173.8K/mo
Daily download trend is not available in this view yet.
117.7K30 days
416K90 days
2.1M1 year
Compare downloads with other packages →
Also on11.3K r2u40 autocran32.1K conda_forge325 c2d4u

Repository

Repository
2,158Stars
222Forks
313Open issues
19Open PRs
19Releases
9,219Commits
57Contributors
rsummary-tableseasy-to-usedocxhtmllatexrtf
9,219 commits · Last activity 2026-07-18 · +0.4% stars, 30d

Stars over time

2025-07-22 · 2,0872026-07-19 · 2,158

Repository practices

Upstream repositoryBeta

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.

Continuous integration (1)
GitHub Actions
Reproducibility and dev environment (1)
data-raw/
Research and citation (1)
CITATION.cff
Lint, format, editor (1)
RStudio project
Show all practices
Coverage (1)
Codecov
Governance and community (3)
Issue templatesPR templateSecurity policy
Git structural (1)
.gitattributes
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Code & Tests

Code Composition
R 87,202 (69%)Rd 38,984 (31%)Markdown 617 (0%)
Code characteristics
Object systems
S356
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

Loading call graph…

Lowest coverage

1022 functions
FunctionCycloCoverage
adjust_luminance exp10%
as_gtable exp20%
as_word exp30%
cell_borders exp30%
cells_group exp10%
cells_source_notes exp10%

Datasets

Bundled datasets · 18
NameClassRows × ColsAlso ships in
constantstbl_df/tbl/data.frame354 × 6
countrypopstbl_df/tbl/data.frame13,975 × 5
exibbletbl_df/tbl/data.frame8 × 9
filmstbl_df/tbl/data.frame1,873 × 8
gibraltartbl_df/tbl/data.frame1,431 × 10
gtcarsspec_tbl_df/tbl_df/tbl/data.frame47 × 15
illnesstbl_df/tbl/data.frame39 × 11
metrotbl_df/tbl/data.frame321 × 11
nuclidestbl_df/tbl/data.frame3,383 × 29
peepstbl_df/tbl/data.frame100 × 14
photolysistbl_df/tbl/data.frame34 × 10
pizzaplacetbl_df/tbl/data.frame49,574 × 7
reactionstbl_df/tbl/data.frame1,683 × 39
rx_addvtbl_df/tbl/data.frame291 × 20
rx_adsltbl_df/tbl/data.frame182 × 14
sp500spec_tbl_df/tbl_df/tbl/data.frame16,607 × 7
szatbl_df/tbl/data.frame816 × 4
townytbl_df/tbl/data.frame414 × 25

17 internal objects are bundled for the package's own use and not listed here.

People & History

People (11)
Maintainer (1)
Author, Maintainer
Authors (10)
Author, Maintainer
Author · added in 0.11.0
Author
Author · added in 1.2.0
Author · added in 1.2.0
Author · added in 0.7.0
Author · added in 0.9.0
Author · added in 0.11.0
Author · added in 0.8.0
Copyright holders (1)
Copyright holder, Funder · added in 0.9.0
Funders (1)
Copyright holder, Funder · added in 0.9.0
Listed in earlier versions (1)
no longer listed · 0.2.0.5 to 0.8.0
Package Timeline

19 releases. Pick two to compare their code metrics. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • 1.3.0Latest
    2026-01-22 · current release · diff ↗
  • 1.2.0
    2025-12-16 · diff ↗
  • 1.1.0
    2025-09-24 · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • 1.0.0
    2025-04-05 · diff ↗
  • 0.11.1
    2024-10-04 · diff ↗
  • 0.11.0
    2024-07-10 · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • 0.10.1
    2024-01-18 · diff ↗
  • 0.10.0
    2023-10-07 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 0.9.0
    2023-03-31 · diff ↗
  • 0.8.0
    2022-11-17 · diff ↗
  • 0.7.0
    2022-08-25 · diff ↗
  • 0.6.0
    2022-05-24 · diff ↗
Show 11 earlier events
  • 0.5.0
    2022-04-22 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • 0.4.0
    2022-02-15 · diff ↗
  • 0.3.1
    2021-08-07 · diff ↗
  • R
    R 4.1.0 released · 2021-05-18
  • 0.3.0
    2021-05-12 · diff ↗
  • 0.2.2
    2020-08-06 · diff ↗
  • 0.2.1
    2020-05-23 · diff ↗
  • R
    R 4.0.0 released · 2020-04-24
  • 0.2.0.5
    2020-03-31
  • R
    R 3.6.0 released · 2019-04-26

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
Appears in task views
Report a problem with this page →