Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Allow modifying the caption after creating a gt() #1048

Closed
2 tasks done
billdenney opened this issue Sep 8, 2022 · 2 comments · Fixed by #1051
Closed
2 tasks done

Feature Request: Allow modifying the caption after creating a gt() #1048

billdenney opened this issue Sep 8, 2022 · 2 comments · Fixed by #1051

Comments

@billdenney
Copy link
Contributor

Prework

Proposal

tab_caption(data, caption) to allow modifying a caption on an already-created gt() object.

data %>%
  gt(caption="old caption") %>%
  tab_caption("my caption here")

As an addition, it would be helpful to also be able to extract the caption information. This may be too flexible, but I would find it helpful to use tab_caption(my_gt) to get the current caption.

@billdenney
Copy link
Contributor Author

Related to #328

@rich-iannone
Copy link
Member

Sounds like a good feature. Thanks for creating this issue!

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

Successfully merging a pull request may close this issue.

2 participants