Skip to content

Replace gt with lt for table output#282

Draft
yihui wants to merge 1 commit into
masterfrom
replace-gt-with-lt
Draft

Replace gt with lt for table output#282
yihui wants to merge 1 commit into
masterfrom
replace-gt-with-lt

Conversation

@yihui

@yihui yihui commented Jul 10, 2026

Copy link
Copy Markdown
Collaborator

Replace the gt package dependency with the lightweight lt package for all table output, mirroring Merck/gsDesign2#629.

Changes

  • Add lt.gsBinomialExactTable() S3 method (R/as_lt.R); deprecate as_gt() in favor of lt::lt().
  • Swap gt for lt in DESCRIPTION Imports.
  • Migrate all table-bearing vignettes to lt, dropping the bundled html_vignette CSS in favor of a minimal vignettes/vignette.css.
  • Update tests, docs, and _pkgdown.yml.

Side-by-side comparison of vignettes rendered via gt vs lt

Download and unzip: vignette-compare.zip

Blocked on

Draft until lt v0.3 is on CRAN. DESCRIPTION currently carries Remotes: yihui/lt; remove it once the CRAN release is available. The migration also relies on lt fixes landing in v0.3:

  • lt_spanner() accepting numeric column indices.
  • Explicit column-order preservation for integer-like column names (JSON object keys reorder them otherwise).

🤖 Generated with Claude Code

Replace the gt package dependency with the lightweight lt package for all
table output, mirroring Merck/gsDesign2#629.

- Add lt.gsBinomialExactTable() S3 method (R/as_lt.R) and deprecate as_gt()
  in favor of lt::lt().
- Swap gt for lt in DESCRIPTION Imports; add Remotes: yihui/lt pending the
  next lt release on CRAN.
- Migrate all table-bearing vignettes to lt, dropping the bundled
  html_vignette CSS in favor of a minimal vignettes/vignette.css.
- Update tests, docs, and _pkgdown.yml accordingly.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@yihui
yihui force-pushed the replace-gt-with-lt branch from 39aa27c to 7f9a4e8 Compare July 10, 2026 20:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant