Skip to content

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

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

Merged
merged 4 commits into from
Aug 7, 2024

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
13 checks passed
@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