Skip to content

Allow table1 objects in new_tab_list()#5

Merged
billdenney merged 2 commits intomainfrom
feature/allow-table1-in-tab-list
Mar 25, 2026
Merged

Allow table1 objects in new_tab_list()#5
billdenney merged 2 commits intomainfrom
feature/allow-table1-in-tab-list

Conversation

@billdenney
Copy link
Copy Markdown
Member

Relaxes the validation in new_tab_list() to accept objects that inherit from "table1" in addition to NULL and data.frame-like objects. This enables storing table1 summary tables directly in a tab_tibble's table column for export via writetfl's export_tfl.table1() S3 method.

Adds a test confirming that both new_tab_list() and new_tab_tibble() accept table1 objects without error.

Relaxes the validation in new_tab_list() to accept objects that inherit
from "table1" in addition to NULL and data.frame-like objects. This
enables storing table1 summary tables directly in a tab_tibble's table
column for export via writetfl's export_tfl.table1() S3 method.

Adds a test confirming that both new_tab_list() and new_tab_tibble()
accept table1 objects without error.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 25, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

Files with missing lines Coverage Δ
R/objects.R 100.00% <100.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

table1 is now listed as a suggested package to indicate that tabtibble
supports storing table1 objects in the table column of a tab_tibble.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@billdenney billdenney merged commit 753cc8c into main Mar 25, 2026
8 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.

1 participant