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

Replace text at bkm with plots. #590

Merged
merged 1 commit into from
Aug 14, 2024

Conversation

trekonom
Copy link
Contributor

@trekonom trekonom commented Aug 3, 2024

Hey David,

inspired by this recent post on SO this PR add two new convenience functions

  • Add body_replace_gg_at_bkm.
  • Add body_replace_plot_at_bkm.

to replace text enclosed in a bookmark with a ggplot or a base r plot.

Both functions are simply adaptions from flextable::body_replace_flextable_at_bkm. As an additional feature I added a keep= parameter to preserve the bookmark.

Best S.

* Add body_replace_gg_at_bkm.
* Add body_replace_plot_at_bkm.
@davidgohel
Copy link
Owner

thanks @trekonom

@davidgohel davidgohel merged commit 639a465 into davidgohel:master Aug 14, 2024
3 checks passed
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.

2 participants