Skip to content

gtsummary

2.6.1Package record

Presentation-Ready Data Summary and Analytic Result Tables

29packages dependsuggested by 27
717.2Kdownloads / year
90.1%test coverage
13/13flavors OK

Overview

About

Creates presentation-ready tables summarizing data sets, regression models, and more. The code to create the tables is concise and highly customizable. Data frames can be summarized with any function, e.g. mean(), median(), even user-written functions. Regression models are summarized and include the reference rows for categorical variables. Common regression models, such as logistic regression and Cox proportional hazards regression, are automatically identified and the tables are pre-filled with appropriate column headers.

Changes in 2.6.1
  • Improved the speed and memory efficiency of the as_*() converters and tbl_summary(). The resolution of the rows predicates stored in x$table_styling no longer round-trips through tidyr::unnest()/dplyr::group_by()/tidyr::nest(), and the summary statistic footnote is now constructed in a single pass over the ARD instead of once per variable. We now see 64% faster compute times for as_gt(), 85% for as_tibble.gtsummary(), and 5% for tbl_summary(). (#2474; @kpagacz)
  • The default body argument of save_flex_docx() now fits the table to 100% of the page width, and the default footer argument correctly right-aligns the "Page X of Y" line.
  • The plot() method for tbl_regression() and tbl_uvregression() now correctly passes arguments in ... to ggstats::ggcoef_plot(), as documented. (#2470)

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 7.6 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK13 OK2026-06-09
  • ERROR12 OK, 1 ERROR2026-06-08
  • OK13 OK2026-05-09
Show 4 earlier changesHide 4 earlier changes
  • ERROR12 OK, 1 ERROR2026-05-03
  • OK13 OK2026-05-02
  • ERROR11 OK, 1 ERROR2026-04-25
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 2.6.1
READMEYes · 815 wordsVignettesYes · 1 · evaluation depends on the environmentNEWSYes · 100% structured · mentions 2.6.1Citation fileYes · cites a publicationWebsiteYes · pkgdown

The repository also keeps web-only articles.

Cites an R Journal article
Help pages
139 (31 internal)includes a package overview page
Examples that run
99%115 run in a plain check (67 of them under a condition) · 1 hold no code
Exported functions with examples
89%
Documented parameters
83%
Return-value docs
75%
Help pages citing references
0%

Downloads

717.2K
CRAN downloads in the past year
Rank #462 · ~2K/day · ~59.8K/mo
Daily download trend is not available in this view yet.
54.9K30 days
169.9K90 days
717.2K1 year
Compare downloads with other packages →
Also on3.2K r2u8 autocran10.7K conda_forge154 c2d4u

Repository

1,216Stars
151Forks
19Open issues
4Open PRs
44Releases
3,231Commits
59Commit identities
rsummary-tablesstatisticsrstatsr-packagegthtml5easy-to-use
3,231 commits · Last activity 2026-10-17 · +0.4% stars, 30d · Default branch at 2.6.1.9001, ahead of CRAN 2.6.1 (checked 2026-10-11)
Responsiveness
How these are sampled
PRs merged (all time)
96%
Median days to close, 50 most recently updated closed issues
226
Median days to close, 50 most recently updated closed PRs
0

Stars over time

2025-10-08 · 1,1422026-10-15 · 1,216
PracticesBeta

18 development-tooling and community-health practices detected across 7 families in the upstream repository

Checks run against github.com/ddsjoberg/gtsummary on 2026-10-11.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Governance and community (6)
Code of conductContributing guideIssue templatesPR templateSupport guide

The repository owner accepts GitHub Sponsors

Docs source (4)
README.Rmdpkgdown

GitHub Pages site last deployed 2026-09-04 · The repository has a site deploy workflow

pkgdown site last built 2026-09-04

Coverage (2)
Coverage reporting (Codecov).covrignore
Show all practicesHide 3 practices
Reproducibility and dev environment (2)
data-raw/Dev Container
CRAN release process (1)
cran-comments.md
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v3 (2026-09-26)
AI coding toolsBeta

This repository shows signs of AI coding tools.

  • Claude Codefirst seen 2026-05-14
    Named in .Rbuildignore: .claude
    Pull request it wrote: opened by a project member
    Commits: at least 36 crediting it in the message
Shared conventions any agent may read, so they name no particular tool.
Seen in the repository: AGENTS.md
Models named in its commits
  • Claude Opus 4.826 commits · Jul to Aug 2026
  • Claude Opus 56 commits · Sep 2026
  • Claude Fable 54 commits · Jul to Aug 2026
Counts are commits, not lines of code. Commits by a tool's accounts count once across all of its accounts. Commits crediting it are the largest count among its credit lines, a minimum.How this is detected·Detection ruleset v4 (updated 2026-09-27)

Dependencies

Declared dependencies
39 external dependencies (excludes base and recommended)

Installing gtsummary adds 62 packages (31 with compiled code, 49 MB of source tarballs). Heaviest: stringi 11 MB, bslib 5.6 MB, gt 3.3 MB.

Depends (1)
R >= 4.2
LinkingTo (0)
none
Enhances (0)
none

Datasets

People & History

People (16)
Author, Maintainer since 0.1.0 (2019)
Author · added in 1.2.0
Author · added in 1.3.3
Author · added in 1.3.6
Author · added in 1.2.0
Author · added in 2.2.0
Contributor · added in 1.5.0
Contributor · added in 2.4.0
Contributor · added in 1.2.0
Contributor · added in 1.2.0
Contributor · added in 1.2.0
Contributor · added in 1.2.5
Contributor · added in 1.5.1
Contributor · added in 1.5.1
Show 1 more contributorHide 1 contributor
Contributor · added in 1.3.3
Releases (42)

Pick two releases to compare their code metrics.

  • 2.6.1Latest
    record
    2026-09-04 · current release · diff ↗
  • 2.6.0
    record
    2026-05-30 · diff ↗ ·
    removed 1 export
    pkgdown_print.gtsummary
    added 4 exports
    modify_footnote_symbol, remove_footnote_symbol, save_flex_docx, without_gtsummary_theme
  • 2.5.1
    record
    2026-05-30 · diff ↗
  • R
    R 4.6.0 released · 2026-04-24
  • 2.5.0
    record
    2025-12-05 · diff ↗ ·
    added 2 exports
    tbl_ard_strata, tbl_ard_strata2
  • 2.4.0
    record
    2025-08-28 · diff ↗
  • 2.3.0
    record
    2025-07-03 · diff ↗ ·
    removed 1 export
    modify_cols_merge
    added 4 exports
    add_difference_row, modify_indent, tbl_split_by_columns, tbl_split_by_rows
  • 2.2.0
    record
    2025-04-14 · diff ↗ ·
    added 3 exports
    filter_hierarchical, modify_post_fmt_fun, sort_hierarchical
  • R
    R 4.5.0 released · 2025-04-11
  • 2.1.0
    record
    2025-02-20 · diff ↗ ·
    added 18 exports
    add_variable_group_header, as_gtsummary, modify_abbreviation, modify_bold, modify_footnote_body, modify_footnote_header, modify_footnote_spanning_header, modify_italic, modify_missing_symbol, remove_abbreviation, remove_bold, remove_column_merge, remove_footnote_body, remove_footnote_header, remove_footnote_spanning_header, remove_italic, remove_spanning_header, tbl_strata_nested_stack
  • 2.0.4
    record
    2024-11-30 · diff ↗ ·
    added 2 exports
    modify_source_note, remove_source_note
  • 2.0.3
    record
    2024-10-04 · diff ↗ ·
    removed 1 export
    tibble_as_cli
    added 5 exports
    brdg_hierarchical, pier_summary_hierarchical, tbl_ard_hierarchical, tbl_hierarchical, tbl_hierarchical_count
  • 2.0.2
    record
    2024-09-05 · diff ↗ ·
    added 4 exports
    gather_ard, glance_fun_s3, tbl_likert, tibble_as_cli
  • 2.0.1
    record
    2024-08-18 · diff ↗
  • 2.0.0
    record
    2024-07-23 · diff ↗ ·
    removed 10 exports
    all_character, all_double, all_factor, all_integer, all_logical, all_numeric, as_flextable, knit_print, modify_table_header, tbl_survival
    added 26 exports
    assign_summary_digits, assign_summary_type, assign_tests, brdg_continuous, brdg_summary, brdg_wide_summary, global_pvalue_fun, inline_text.tbl_summary, label_style_number, label_style_percent, label_style_pvalue, label_style_ratio, label_style_sigfig, pier_summary_categorical, pier_summary_continuous, pier_summary_continuous2, pier_summary_dichotomous, pier_summary_missing_row, pkgdown_print.gtsummary, scope_header, scope_table_body, tbl_ard_continuous, tbl_ard_summary, tbl_ard_wide_summary, tbl_wide_summary, where
  • R
    R 4.4.0 released · 2024-04-24
Show 36 earlier eventsHide 36 earlier events
  • 1.7.2
    record
    2023-07-15 · diff ↗
  • 1.7.1
    record
    2023-04-27 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 1.7.0
    record
    2023-01-13 · diff ↗ ·
    removed 2 exports
    add_p_, tbl_summary_
  • 1.6.3
    record
    2022-12-06 · diff ↗
  • 1.6.2
    record
    2022-09-30 · diff ↗
  • 1.6.1
    record
    2022-06-22 · diff ↗ ·
    added 1 export
    modify_column_merge
  • 1.6.0
    record
    2022-04-26 · diff ↗ ·
    added 10 exports
    .escape_html, .escape_latex, .escape_latex2, .table_styling_expr_to_row_number, as_hux_xlsx, check_gtsummary_theme, get_gtsummary_theme, modify_column_indent, tidy_wald_test, with_gtsummary_theme
  • R
    R 4.2.0 released · 2022-04-22
  • 1.5.2
    record
    2022-01-29 · diff ↗ ·
    added 1 export
    .create_gtsummary_object
  • 1.5.1
    record
    2022-01-21 · diff ↗ ·
    removed 1 export
    assert_package
    added 2 exports
    modify_column_alignment, tbl_strata2
  • 1.5.0
    record
    2021-10-16 · diff ↗ ·
    removed 8 exports
    Surv, add_comparison, add_global, tab_style_bold_labels, tab_style_bold_levels, tab_style_bold_p, tab_style_italicize_labels, tab_style_italicize_levels
    added 12 exports
    add_ci, assert_package, continuous_summary, modify_cols_merge, proportion_summary, ratio_summary, separate_p_footnotes, tbl_butcher, tbl_continuous, tbl_custom_summary, tbl_split, tidy_robust
  • 1.4.2
    record
    2021-07-13 · diff ↗
  • 1.4.1
    record
    2021-05-19 · diff ↗
  • R
    R 4.1.0 released · 2021-05-18
  • 1.4.0
    record
    2021-04-13 · diff ↗ ·
    added 9 exports
    add_glance_table, add_significance_stars, add_vif, modify_fmt_fun, modify_table_styling, tbl_strata, theme_gtsummary_eda, theme_gtsummary_printer, tidy_gam
  • unarchivedReturned to CRAN
    2021-02-26
  • archivedRemoved from CRAN
    2021-02-26
    check problems were not corrected in time Failed to use suggested packages conditionally
  • 1.3.7
    record
    2021-02-26 · diff ↗
  • 1.3.6
    record
    2021-01-08 · diff ↗ ·
    added 14 exports
    Surv, add_difference, all_contrasts, all_interaction, all_intercepts, all_stat_cols, all_tests, modify_caption, modify_column_hide, modify_column_unhide, modify_table_body, mutate, pool_and_tidy_mice, remove_row_type
  • 1.3.5
    record
    2020-09-29 · diff ↗ ·
    removed 1 export
    theme_gtsummary_printer
    added 8 exports
    add_glance_source_note, all_continuous2, filter_p, modify_table_header, theme_gtsummary_continuous2, theme_gtsummary_mean_sd, tidy_bootstrap, tidy_standardize
  • 1.3.4
    record
    2020-08-27 · diff ↗
  • 1.3.3
    record
    2020-08-11 · diff ↗ ·
    removed 1 export
    gtsummary_logo
    added 6 exports
    as_flex_table, as_hux_table, show_header_names, style_number, tbl_svysummary, theme_gtsummary_language
  • 1.3.2
    record
    2020-06-14 · diff ↗ ·
    removed 1 export
    as_huxtable
  • 1.3.1
    record
    2020-06-03 · diff ↗ ·
    added 10 exports
    add_stat, as_huxtable, modify_footnote, modify_spanning_header, reset_gtsummary_theme, select, set_gtsummary_theme, theme_gtsummary_compact, theme_gtsummary_journal, theme_gtsummary_printer
  • R
    R 4.0.0 released · 2020-04-24
  • 1.3.0
    record
    2020-04-17 · diff ↗ ·
    added 4 exports
    as_flextable, as_kable_extra, tbl_cross, tbl_survfit
  • 1.2.6
    record
    2020-02-13 · diff ↗
  • 1.2.5
    record
    2020-02-12 · diff ↗ ·
    removed 6 exports
    cols_label_summary, fmt_beta, fmt_pvalue, fmt_regression, fmt_table1, fmt_uni_regression
    added 3 exports
    all_of, any_of, combine_terms
  • 1.2.4
    record
    2019-12-17 · diff ↗
  • 1.2.3
    record
    2019-11-12 · diff ↗
  • 1.2.2
    record
    2019-11-10 · diff ↗ ·
    added 3 exports
    add_p_, as_tibble, tbl_summary_
  • 1.2.1
    record
    2019-08-20 · diff ↗
  • 1.2.0
    record
    2019-08-19 · diff ↗ ·
    removed 8 exports
    as_data_frame, as_data_frame.fmt_regression, as_data_frame.fmt_table1, as_data_frame.fmt_uni_regression, as_tibble, fmt_percent, indent_key, row_to_name
    added 41 exports
    add_global_p, add_nevent, add_p, all_categorical, all_character, all_continuous, all_dichotomous, all_double, all_factor, all_integer, all_logical, all_numeric, as_gt, as_kable, cols_label_summary, contains, ends_with, everything, gtsummary_logo, last_col, matches, num_range, one_of, sort_p, starts_with, style_percent, style_pvalue, style_ratio, style_sigfig, tab_style_bold_labels and 11 more
  • 0.1.0
    record
    2019-05-10
  • R
    R 3.6.0 released · 2019-04-26

Package metadata

First published
2019-05-10
Total releases
42 / 7 yrs
License
MIT + file LICENSE OSI
Minimum R
≥ 4.2
Bundled data
2.6 KB / 1 file
Download size
971 KB
Appears in task views

Cite

Cite this package

Run in R for the authors' entry:

citation("gtsummary")

The package provides a citation file, so citation() returns the authors' own entry.

It points to 10.32614/rj-2021-053.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for gtsummary version 2.6.1 [Data set]. HJJB, LLC. Data release v2026-10-18. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-18, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy