Add display() methods and support for tinytable#647
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR adds support for the tinytable package across multiple display methods and implements display() methods where missing. The changes focus on extending formatting options to include "tt" (tinytable) format alongside existing markdown and HTML formats.
- Adds tinytable support to
display()methods for distribution descriptions, data tabulation, and codebooks - Implements a new
display()method fordata_codebookobjects - Updates backend detection logic to handle tinytable formatting across different output contexts
Reviewed Changes
Copilot reviewed 15 out of 15 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| tests/testthat/test-describe_distribution.R | Adds test for tinytable format display |
| tests/testthat/test-data_tabulate.R | Adds comprehensive tests for tinytable format in tabulation functions |
| tests/testthat/test-data_codebook.R | Adds tests for tinytable format in codebook display |
| tests/testthat/_snaps/*.md | Snapshot files for tinytable output validation |
| man/*.Rd | Documentation updates for new display methods and format parameter |
| R/describe_distribution.R | Updates display method to support tinytable backend |
| R/data_xtabulate.R | Adds backend detection for tinytable support |
| R/data_tabulate.R | Implements display method and backend detection utilities |
| R/data_codebook.R | Implements display method and tinytable support |
| NEWS.md | Documents new features |
| NAMESPACE | Exports new display method |
| DESCRIPTION | Adds tinytable dependency |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #647 +/- ##
==========================================
+ Coverage 91.73% 92.14% +0.41%
==========================================
Files 76 76
Lines 6410 6519 +109
==========================================
+ Hits 5880 6007 +127
+ Misses 530 512 -18 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@etiennebacher We have improved the |
etiennebacher
left a comment
There was a problem hiding this comment.
Thanks, just a few comments to address and then this can be merged.
|
Also there's some styling to fix apparently |
Co-authored-by: Etienne Bacher <52219252+etiennebacher@users.noreply.github.com>
Uh oh!
There was an error while loading. Please reload this page.