Skip to content

Add rtables VTableTree connector for export_tfl()#17

Merged
billdenney merged 3 commits intomainfrom
feature/rtables-connector
Mar 23, 2026
Merged

Add rtables VTableTree connector for export_tfl()#17
billdenney merged 3 commits intomainfrom
feature/rtables-connector

Conversation

@billdenney
Copy link
Copy Markdown
Member

Support passing rtables VTableTree objects (and lists of them) directly to export_tfl(). Annotations (main_title, subtitles → caption; main_footer, prov_footer → footnote) are extracted and placed in writetfl's layout zones. Rendering uses toString() → textGrob() with monospace font, matching rtables' own export_as_pdf() approach. Pagination delegates to rtables::paginate_table() with lpp/cpp computed from available content dimensions and font metrics.

Includes S3 method, converter, helpers, 59 tests (100% coverage), vignette, and design doc updates.

billdenney and others added 3 commits March 22, 2026 23:10
Support passing rtables VTableTree objects (and lists of them) directly
to export_tfl(). Annotations (main_title, subtitles → caption;
main_footer, prov_footer → footnote) are extracted and placed in
writetfl's layout zones. Rendering uses toString() → textGrob() with
monospace font, matching rtables' own export_as_pdf() approach.
Pagination delegates to rtables::paginate_table() with lpp/cpp computed
from available content dimensions and font metrics.

Includes S3 method, converter, helpers, 59 tests (100% coverage),
vignette, and design doc updates.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Document gt_tbl and VTableTree support in the README with usage
examples and links to the corresponding vignettes.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add overview sections with examples for gt and rtables table input,
and complete the vignette index with v04-v06 entries.

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