Skip to content

Adding gt to docx #929

Closed
Closed

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

Activity

  1. added this to the v0.7.0 milestone on Apr 27, 2022
  2. rich-iannone commented on Apr 27, 2022

    @rich-iannone
    Member

    Thanks @thebioengineer for posting this issue. This is certainly something we will want to add to the package and the work should be done after the RTF improvements we have lined up.

  3. rich-iannone commented on Jul 7, 2022

    @rich-iannone
    Member

    The .docx output part is now merged, so I'll close this issue. @thebioengineer : thanks for your hard work on that PR, it is appreciated!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions