Skip to content

Adding gt to docx #929

@thebioengineer

Description

@thebioengineer

Prework

Proposal

Describe the new feature clearly and concisely. If applicable, write a minimal example in R code or pseudo-code to show input, usage, and desired output.

To help us read any code you include (optional) please try to follow the tidyverse style guide. The style_text() and style_file() functions from the styler package make it easier.

It would be great to add gt tables to word documents using a similar API as the flextable/officer workflow. As in you use body_add_flextable() to add flextables, maybe replace this with body_add_gt().
The overall interaction should be the same, as in it takes a gt table, then will under the hood convert it to oxml, and then inject it into the word doc at the point of the cursor.
Optionally split the rows, alignment (center, left, right), inject before or after the cursor

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions