Skip to content

tangram

0.8.3Package record

The Grammar of Tables

0packages depend
3.6Kdownloads / year
27.7%test coverage
13/13flavors OK

Overview

About

Provides an extensible formula system to quickly and easily create production quality tables. The processing steps are a formula parser, statistical content generation from data as defined by formula, followed by rendering into a table. Each step of the processing is separate and user definable thus creating a set of composable building blocks for highly customizable table generation. A user is not limited by any of the choices of the package creator other than the formula grammar. For example, one could chose to add a different S3 rendering function and output a format not provided in the default package, or possibly one would rather have Gini coefficients for their statistical content in a resulting table. Routines to achieve New England Journal of Medicine style, Lancet style and Hmisc::summaryM() statistics are provided. The package contains rendering for HTML5, Rmarkdown and an indexing format for use in tracing and tracking are provided.

Install

Health

CRAN checks
13OK
Slowest check: 2.2 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-10-17
  • WARNING12 OK, 1 WARNING2026-10-01
  • OK13 OK2026-08-04
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK13 OK2026-06-19
Show 4 earlier changesHide 4 earlier changes
  • WARNING12 OK, 1 WARNING2026-06-17
  • OK13 OK2026-06-09
  • ERROR12 OK, 1 ERROR2026-06-08
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 0.8.3
READMEYes · 3,220 wordsVignettesNoNEWSNoCitation fileNoWebsitenot declared in DESCRIPTION
Help pages
93
Examples that run
100%29 run in a plain check
Exported functions with examples
42%
Documented parameters
100%
Return-value docs
72%
Help pages citing references
0%

Downloads

3.6K
CRAN downloads in the past year
Rank #11,492 · ~10/day · ~300/mo
Daily download trend is not available in this view yet.
37030 days
93690 days
3.6K1 year
Compare downloads with other packages →
Also on75 r2u7 autocran1.6K conda_forge

Repository

68Stars
3Forks
15Open issues
0Open PRs
0Releases
669Commits
4Commit identities
669 commits · Last activity 2023-02-09 · The default branch showed an older version (0.8.2) than CRAN on 2026-10-21
Responsiveness
How these are sampled
PRs merged (all time)
100%
Median days to close, 50 most recently updated closed issues
83
Median days to close, 50 most recently updated closed PRs
101

Stars over time

2025-04-30 · 682026-07-07 · 68
PracticesBeta

Checks run against github.com/spgarbet/tangram on 2026-10-21.

No development-tooling practices detected in the upstream repository.

How this is detected·Detection ruleset v4 (2026-10-20)

Dependencies

Declared dependencies
16 external dependencies (excludes base and recommended)

Installing tangram adds 18 packages (12 with compiled code, 15 MB of source tarballs). Heaviest: stringi 11 MB, vctrs 1.0 MB, rlang 766 KB.

Depends (4)
R >= 3.5.0R6magrittrknitr
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Datasets

People & History

People (5)
Author, Maintainer since 0.2.6 (2017)
Contributor · added in 0.3
Contributor · added in 0.7.1
Contributor
Releases (8)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • 0.8.3Latest
    record
    2025-07-31 · current release · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • unarchivedReturned to CRAN
    2023-01-26
  • 0.8.2
    record
    2023-01-26 · diff ↗
  • archivedRemoved from CRAN
    2022-12-09
    issues were not corrected in time
  • 0.8.1
    record
    2022-08-19 · diff ↗ ·
    added 3 exports
    latex_template, set_colspan, set_rowspan
  • R
    R 4.2.0 released · 2022-04-22
  • R
    R 4.1.0 released · 2021-05-18
  • unarchivedReturned to CRAN
    2020-04-29
  • 0.7.1
    record
    2020-04-29 · diff ↗ ·
    removed 13 exports
    cell_chi2, cell_estimate, cell_fraction, cell_fstat, cell_iqr, cell_named_values, cell_range, cell_spearman, cell_studentt, hmisc_style, nejm_style, table_builder, table_builder_apply
    added 37 exports
    add_footnote, hmisc, hmisc_cell, hmisc_chi2, hmisc_fraction, hmisc_fstat, hmisc_iqr, hmisc_p, hmisc_spearman, hmisc_wilcox, insert_column, lancet, lancet_cell, lancet_fraction, lancet_mean_sd, latexify, nejm, nejm_cell, nejm_fraction, nejm_iqr, replace_cell, select_col, select_row, set_caption, set_footnote, set_id, set_style, smd, smd_cell, smd_compare and 7 more
  • R
    R 4.0.0 released · 2020-04-24
  • archivedRemoved from CRAN
    2020-04-09
    check problems were not corrected despite reminders
  • R
    R 3.6.0 released · 2019-04-26
Show 6 earlier eventsHide 6 earlier events
  • 0.4
    record
    2018-06-04 · diff ↗ ·
    added 6 exports
    add_indent, csv, insert_row, nejm_style, proc_tab, summarize_nejm_horz
  • R
    R 3.5.0 released · 2018-04-23
  • 0.3.2
    record
    2017-10-02 · diff ↗ ·
    removed 1 export
    summarize_chisq_single
    added 2 exports
    latex, rtf
  • 0.3
    record
    2017-06-27 · diff ↗ ·
    removed 11 exports
    cell_quantile, cell_table, form, new_table_builder, summary_frame, summary_rms, summary_table, tg, tg_N, tg_fraction, tg_quantile
    added 9 exports
    cell, cell_iqr, cell_named_values, cell_range, cols, render_f, rows, table_builder, tangram
  • 0.2.6
    record
    2017-05-03
  • R
    R 3.4.0 released · 2017-04-21

Package metadata

First published
2017-05-03
Total releases
8 / 9 yrs
License
GPL-3 OSI
Minimum R
≥ 3.5.0
Bundled data
11 KB / 1 file
Download size
151 KB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("tangram")
Garbett, S., Harrell, F., Kim, A., Stewart, T., & Thompson, J. (2025). tangram: The Grammar of Tables (Version 0.8.3) [Computer software]. https://doi.org/10.32614/CRAN.package.tangram

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

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 tangram version 0.8.3 [Data set]. HJJB, LLC. Data release v2026-10-23. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-23, 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