Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. R
  3. gt

gt

NOASSERTIONRv1.3.0

An R package for creating publication-quality, information-rich tables with a cohesive and flexible API.

Visit WebsiteGitHubGitHub
2.2k stars222 forks0 contributors

What is gt?

gt is an R package that enables users to easily generate information-rich, publication-quality tables from data frames or tibbles. It solves the problem of creating visually appealing and well-structured tables for reports, documents, and presentations directly within the R programming environment. The package provides a flexible API for formatting and customizing tables, which can be exported to HTML, LaTeX, or RTF formats.

Target Audience

R users, data scientists, researchers, and analysts who need to create professional tables for reports, academic papers, dashboards, or any communication of tabular data. It is particularly useful for those working within the R Markdown or Shiny ecosystems.

Value Proposition

Developers choose gt for its cohesive design philosophy, which breaks down table construction into logical parts, making it intuitive yet highly customizable. Unlike basic table functions, it offers extensive formatting options and supports multiple output formats, bridging the gap between data analysis and polished presentation.

Overview

Easily generate information-rich, publication-quality tables from R

Use Cases

Best For

  • Creating publication-ready tables for academic papers and reports
  • Generating formatted tables in R Markdown documents and dashboards
  • Producing complex tables with custom headers, footers, and spanners
  • Formatting numeric, currency, and date data in tables for clarity
  • Exporting tables to HTML for web applications or LaTeX for print
  • Building reproducible analysis pipelines that include polished table outputs

Not Ideal For

  • Projects requiring interactive web tables with client-side sorting, filtering, or editing
  • Teams working exclusively in non-R environments like Python or JavaScript for data visualization
  • Applications needing real-time table generation from streaming data or high-frequency updates
  • Users who prefer GUI-based or drag-and-drop table builders without writing code

Pros & Cons

Pros

Cohesive Table Design

The package's philosophy centers on logical table parts like headers, stubs, and footers, making construction intuitive and modular, as illustrated in the README's workflow diagram.

Rich Formatting Capabilities

Offers extensive functions for formatting numbers, currencies, dates, and text, demonstrated in the sp500 example with fmt_currency() and fmt_date().

Multi-Format Output Support

Tables can be rendered to HTML, LaTeX, and RTF, enabling seamless integration into web pages, academic papers, and documents, as highlighted in the key features.

Strong Ecosystem and Learning Resources

Includes comprehensive documentation, 18 included datasets for experimentation, and active community support via GitHub Discussions and Discord, as shown in the badges and links.

Cons

R-Locked Ecosystem

As an R package, it's only useful within the R environment, limiting adoption for teams using other programming languages or tools.

Static Output Limitations

Tables are primarily static; for interactive features like sorting or filtering, additional JavaScript libraries or packages are required, which isn't natively supported.

Steep Learning Curve for Advanced Use

While simple for basic tables, creating highly complex layouts with custom styling can involve extensive code and familiarity with the API, as hinted by the need for deep customization.

Frequently Asked Questions

Quick Stats

Stars2,159
Forks222
Contributors0
Open Issues313
Last commit6 days ago
CreatedSince 2018

Tags

#reporting#r-package#docx#rtf#latex#html#easy-to-use#data-visualization#r#tidyverse#html-output

Built With

R
R

Links & Resources

Website

Included in

R6.4k
Auto-fetched 5 hours ago

Related Projects

torchtorch

Tensors and Neural Networks with 'GPU' Acceleration

Stars0
Forks0
Last commit
lightgbm <img class="emoji" alt="heart" src="https://cdn.jsdelivr.net/gh/qinwf/awesome-R@3c66da6e291bcc0520b1649125b0bed750896a9a/heart.png" height="20" align="absmiddle" width="20">lightgbm <img class="emoji" alt="heart" src="https://cdn.jsdelivr.net/gh/qinwf/awesome-R@3c66da6e291bcc0520b1649125b0bed750896a9a/heart.png" height="20" align="absmiddle" width="20">

Light Gradient Boosting Machine

Stars0
Forks0
Last commit
Visual Studio CodeVisual Studio Code

Customizes development with extensions. Open-Source Software

Stars0
Forks0
Last commit
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub