Applies Display Metadata to Analysis Results Datasets
Overview
Creates a framework to store and apply display metadata to Analysis Results Datasets (ARDs). The use of 'tfrmt' allows users to define table format and styling without the data, and later apply the format to the data.
Improvements
footnote_plan()receives a new argument,order, allowing users to specify the order of footnotes (#605, @alanahjonas95).- Add markdown processing of stub column labels (#617)
- Update default for
row_grp_plan()/row_grp_structure()to remove trailing post-space rows (#630, @alanahjonas95). - Added
extract_data()function to enable data to be easily extracted from a tfrmt into a data frame (#628, @alanahjonas95). shuffle_card()now automatically strips inherited ARD attributes from objects of classbind_ardto avoid unreliable metadata (#650).shuffle_card()now prioritises the user-suppliedbyargument over inherited ARD attributes, giving users control to override attributes and updating the mismatch message to reflect this change (#650).
Bug fixes
- Fix bug in
tfrmt_sigdigso it correctly passes the 'missing' argument to the body_plan (#621, @alanahjonas95). - Fix bug in
page_planwhere the max_rows argument was returning an error if a value in the group variable was an empty string (#539, @alanahjonas95). - Fix bug in
row_grp_planwhere identical labels repeated across different groups were incorrectly forced to the top of the table instead of maintaining their correct order (#634, @alanahjonas95). - Fix bug in
as.character.span_structurewhere the regex was incorrectly capturing content wrapped in parentheses as an R function even though it did not have a valid R function identifier immediately before the(. i.e., "n (%)" incorrectly captured as a function (#643, @LiamHobby).
From NEWS.md in the release
Install
Health
NOTER code for possible problemsr-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-x86_64
Found calls to structure() using deprecated special names: tfrmt/tests/testthat/test_print_to_ggplot.R (.Label: 1, .Names: 1) '.Label' should be changed to 'levels'. '.Names' should be changed to 'names'.
- NOTE8 OK, 5 NOTENow
- NOTE11 OK, 2 NOTE2026-07-16
- ERROR11 OK, 2 ERROR2026-07-07
- OK13 OK2026-05-09
- ERROR12 OK, 1 ERROR2026-05-03
- OK14 OK2026-03-10
Documentation
- Help pages
- 45 (3 internal)
- Examples that run
- 93%28 run in a plain check · 2 never run
- Exported functions with examples
- 73%
- Documented parameters
- 96%
- Return-value docs
- 98%
- Help pages citing references
- 0%
Downloads
Repository
- PRs merged (all time)
- 90%
- Median days to close, 50 most recently updated closed issues
- 4
- Median days to close, 50 most recently updated closed PRs
- 2
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
Commits over time
16 development-tooling and community-health practices detected across 7 families in the upstream repository
Checks run against github.com/gsk-biostatistics/tfrmt on 2026-10-21.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2026-08-26 · The repository has a site deploy workflow
pkgdown site last built 2026-07-14
Show all practicesHide 3 practices
This repository shows signs of AI coding tools.
- GitHub Copilotfirst seen 2026-07-13Commits: at least 46 crediting it in the message
Dependencies
Installing tfrmt adds 65 packages (33 with compiled code, 56 MB of source tarballs). Heaviest: stringi 11 MB, ggplot2 6.0 MB, bslib 5.6 MB.
Code & Tests
Datasets
People & History
Previously maintained by Becca Krouse (0.1.0 to 0.3.0) and Christina Fillmore (0.0.1 to 0.0.3).
Pick two releases to compare their code metrics.
- 0.4.0Latest
- RR 4.6.0 released · 2026-04-24
- 0.3.02026-01-24 · diff ↗
- 0.2.12025-10-04 · diff ↗
- 0.2.02025-09-06 · diff ↗ ·
added 5 exports
prep_big_n, prep_combine_vars, prep_hierarchical_fill, prep_label, shuffle_card - RR 4.5.0 released · 2025-04-11
- 0.1.32024-10-15 · diff ↗
- 0.1.22024-07-06 · diff ↗
- RR 4.4.0 released · 2024-04-24
- 0.1.12024-03-15 · diff ↗
- 0.1.02023-10-18 · diff ↗ ·
added 5 exports
cleaned_data_to_gt, display_val_frmts, make_mock_data, page_plan, page_structure - 0.0.3
- RR 4.3.0 released · 2023-04-21
- 0.0.2
- 0.0.12022-12-06
- RR 4.2.0 released · 2022-04-22
Package metadata
- First published
- 2022-12-06
- Total releases
- 11 / 4 yrs
- License
- Apache License (>= 2)
- Minimum R
- ≥ 4.2.0
- Bundled data
- 55 KB / 4 files
- Download size
- 244 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("tfrmt")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.
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.