Fully remove gt dependency after the as_gt() deprecation period
Nobody has claimed this yet.
- Dominant language
- R
- Stars
- 34
- Forks
- 11
- Avg merge
- 2d 14h
- Merged PRs (30d)
- 7
Description
Background
PR #629 replaced the heavy gt dependency with the lightweight lt package. To avoid breaking user code that customizes output with {gt} functions, as_gt() was given a gentle deprecation rather than being removed outright:
as_gt()still returns agt_tblobject, but emits.Deprecated()pointing tolt::lt().- gt was moved from
ImportstoSuggests;as_gt()checks for it at call time and errors with an install hint if it is missing. lt()S3 methods are the recommended replacement and are available now.
Task (future release)
After at least one release of the gentle deprecation, fully remove {gt}:
- Remove
R/as_gt.R(theas_gt()generic and its S3 methods) andman/as_gt.Rd. - Drop the
S3method(as_gt, *)entries andexport(as_gt)fromNAMESPACE(regenerate via roxygen). - Remove gt from
SuggestsinDESCRIPTION. - Remove the
assert_gt_installed()helper. - Remove
as_gtfrom_pkgdown.ymland any lingering references in docs/vignettes/tests. - Add a NEWS entry noting the removal.
xref #629
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading R/as_gt.R and searching the repository for as_gt, gt, and assert_gt_installed, including NAMESPACE, DESCRIPTION, _pkgdown.yml, docs, vignettes, and tests. Regenerate NAMESPACE via roxygen and run the package checks. Done means the deprecated API, gt dependency, helper, references, and documentation are removed, with a NEWS entry recording the change.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- r
- Domain
- build-system, documentation, tooling
- Issue type
- Refactor
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Clearly specified
- Newbie friendliness
- 65/100