Presentation-Ready Data Summary and Analytic Result Tables
Overview
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.
- Improved the speed and memory efficiency of the
as_*()converters andtbl_summary(). The resolution of therowspredicates stored inx$table_stylingno longer round-trips throughtidyr::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 foras_gt(), 85% foras_tibble.gtsummary(), and 5% fortbl_summary(). (#2474; @kpagacz) - The default
bodyargument ofsave_flex_docx()now fits the table to 100% of the page width, and the defaultfooterargument correctly right-aligns the"Page X of Y"line. - The
plot()method fortbl_regression()andtbl_uvregression()now correctly passes arguments in...toggstats::ggcoef_plot(), as documented. (#2470)
From NEWS.md in the release
Install
Health
- 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
Documentation
The repository also keeps web-only articles.
- 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
Repository
- 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
Forks over time
Releases over time
Issues over time
PRs over time
Commits over time
Commit identities over time
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.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
The repository owner accepts GitHub Sponsors
GitHub Pages site last deployed 2026-09-04 · The repository has a site deploy workflow
pkgdown site last built 2026-09-04
Show all practicesHide 3 practices
This repository shows signs of AI coding tools.
- Claude Codefirst seen 2026-05-14Named in .Rbuildignore: .claudePull request it wrote: opened by a project memberCommits: at least 36 crediting it in the message
- Claude Opus 4.826 commits · Jul to Aug 2026
- Claude Opus 56 commits · Sep 2026
- Claude Fable 54 commits · Jul to Aug 2026
Dependencies
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.
Show the 48 most downloaded packagesHide the 48 most downloaded packages
Code & Tests
Datasets
People & History
Show 1 more contributorHide 1 contributor
Pick two releases to compare their code metrics.
- 2.6.1Latest
- 2.6.02026-05-30 · diff ↗ ·
removed 1 export
pkgdown_print.gtsummaryadded 4 exports
modify_footnote_symbol, remove_footnote_symbol, save_flex_docx, without_gtsummary_theme - 2.5.12026-05-30 · diff ↗
- RR 4.6.0 released · 2026-04-24
- 2.5.0
- 2.4.02025-08-28 · diff ↗
- 2.3.02025-07-03 · diff ↗ ·
removed 1 export
modify_cols_mergeadded 4 exports
add_difference_row, modify_indent, tbl_split_by_columns, tbl_split_by_rows - 2.2.0
- RR 4.5.0 released · 2025-04-11
- 2.1.02025-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
- 2.0.32024-10-04 · diff ↗ ·
removed 1 export
tibble_as_cliadded 5 exports
brdg_hierarchical, pier_summary_hierarchical, tbl_ard_hierarchical, tbl_hierarchical, tbl_hierarchical_count - 2.0.2
- 2.0.12024-08-18 · diff ↗
- 2.0.02024-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_survivaladded 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 - RR 4.4.0 released · 2024-04-24
Show 36 earlier eventsHide 36 earlier events
- 1.7.22023-07-15 · diff ↗
- 1.7.12023-04-27 · diff ↗
- RR 4.3.0 released · 2023-04-21
- 1.7.0
- 1.6.32022-12-06 · diff ↗
- 1.6.22022-09-30 · diff ↗
- 1.6.1
- 1.6.02022-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 - RR 4.2.0 released · 2022-04-22
- 1.5.2
- 1.5.12022-01-21 · diff ↗ ·
removed 1 export
assert_packageadded 2 exports
modify_column_alignment, tbl_strata2 - 1.5.02021-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_levelsadded 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.22021-07-13 · diff ↗
- 1.4.12021-05-19 · diff ↗
- RR 4.1.0 released · 2021-05-18
- 1.4.02021-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 CRAN2021-02-26
- archivedRemoved from CRAN2021-02-26check problems were not corrected in time Failed to use suggested packages conditionally
- 1.3.72021-02-26 · diff ↗
- 1.3.62021-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.52020-09-29 · diff ↗ ·
removed 1 export
theme_gtsummary_printeradded 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.42020-08-27 · diff ↗
- 1.3.32020-08-11 · diff ↗ ·
removed 1 export
gtsummary_logoadded 6 exports
as_flex_table, as_hux_table, show_header_names, style_number, tbl_svysummary, theme_gtsummary_language - 1.3.2
- 1.3.12020-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 - RR 4.0.0 released · 2020-04-24
- 1.3.0
- 1.2.62020-02-13 · diff ↗
- 1.2.52020-02-12 · diff ↗ ·
removed 6 exports
cols_label_summary, fmt_beta, fmt_pvalue, fmt_regression, fmt_table1, fmt_uni_regressionadded 3 exports
all_of, any_of, combine_terms - 1.2.42019-12-17 · diff ↗
- 1.2.32019-11-12 · diff ↗
- 1.2.2
- 1.2.12019-08-20 · diff ↗
- 1.2.02019-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_nameadded 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.02019-05-10
- RR 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
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.
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.