Skip to content

Add table1 connector for export_tfl()#20

Merged
billdenney merged 1 commit intomainfrom
feature/table1-connector
Mar 23, 2026
Merged

Add table1 connector for export_tfl()#20
billdenney merged 1 commit intomainfrom
feature/table1-connector

Conversation

@billdenney
Copy link
Copy Markdown
Member

Support passing table1 objects directly to export_tfl(). The connector converts via t1flex() to flextable, preserving column labels, bold variable names, indented summary statistics, and stratification headers. Caption and footnote are extracted from the table1 object's internal structure. Pagination is group-aware: page breaks fall between variable groups rather than splitting a group mid-way.

  • New R/table1.R with S3 method, converter, and group-aware pagination
  • New tests/testthat/test-table1.R (101 tests, 100% coverage)
  • New vignettes/v08-table1.Rmd
  • Updated export_tfl.list() for lists of table1 objects
  • Updated README.md, main vignette, and design docs

Support passing table1 objects directly to export_tfl(). The connector
converts via t1flex() to flextable, preserving column labels, bold
variable names, indented summary statistics, and stratification headers.
Caption and footnote are extracted from the table1 object's internal
structure. Pagination is group-aware: page breaks fall between variable
groups rather than splitting a group mid-way.

- New R/table1.R with S3 method, converter, and group-aware pagination
- New tests/testthat/test-table1.R (101 tests, 100% coverage)
- New vignettes/v08-table1.Rmd
- Updated export_tfl.list() for lists of table1 objects
- Updated README.md, main vignette, and design docs

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@billdenney billdenney merged commit f3ec7f7 into main Mar 23, 2026
7 checks passed
@billdenney billdenney deleted the feature/table1-connector branch March 23, 2026 14:20
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