Skip to content

Refactor footnotes tests + stores styles and footnotes in data frames.#1818

Merged
rich-iannone merged 4 commits intorstudio:masterfrom
olivroy:footnote-tweaks
Aug 7, 2024
Merged

Refactor footnotes tests + stores styles and footnotes in data frames.#1818
rich-iannone merged 4 commits intorstudio:masterfrom
olivroy:footnote-tweaks

Conversation

@olivroy
Copy link
Collaborator

@olivroy olivroy commented Aug 6, 2024

Summary

This refactors the tests for tab_footnote() and also refactors footnote creation by taking advantage of .by in mutate() instead of group_by() + mutate() + ungroup(). This should increase performance, but also doesn't reorder automatically. I haven't found issues related to this.

Checklist

@olivroy olivroy requested a review from rich-iannone August 6, 2024 13:52
@rich-iannone
Copy link
Member

Thank you for refactoring the footnotes codebase. It seems to be one of the last places with %>% so would you consider removing those (with any strategy you think is best)?

@olivroy
Copy link
Collaborator Author

olivroy commented Aug 6, 2024

Yes! I may get to this in a follow-up PR!

Copy link
Member

@rich-iannone rich-iannone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@rich-iannone rich-iannone merged commit aebc2b1 into rstudio:master Aug 7, 2024
@olivroy olivroy deleted the footnote-tweaks branch August 7, 2024 10:37
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