Skip to content

Add as.gtable() S3 method#1973

Merged
rich-iannone merged 2 commits intorstudio:masterfrom
teunbrand:as.gtable_method
Apr 4, 2025
Merged

Add as.gtable() S3 method#1973
rich-iannone merged 2 commits intorstudio:masterfrom
teunbrand:as.gtable_method

Conversation

@teunbrand
Copy link
Copy Markdown
Contributor

Summary

This PR aims to fix #1972. It uses gt::as_gtable() to write an S3 method for the gtable::as.gtable() generic.
It resolves the registering a method for a suggested package via vctrs::s3_register().
I'm not sure it merits any tests or news bullets, but I'd be happy to add them if needed.

Related GitHub Issues and PRs

Checklist

@rich-iannone
Copy link
Copy Markdown
Member

@teunbrand thank you for this PR! No NEWS bullet necessary here. Will merge shortly :)

@rich-iannone rich-iannone merged commit 9a549a7 into rstudio:master Apr 4, 2025
11 of 12 checks passed
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.

Add gtable::as.gtable() method

2 participants