-
-
Notifications
You must be signed in to change notification settings - Fork 1
Fixing the class checks and some minors #9
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
Conversation
Melkiades
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is ready
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR fixes a bug in class checking logic and adds improvements to the save_with_rmarkdown() function. The changes ensure proper detection of table classes when working with lists of tables, add path normalization for reliable file output, and expand test coverage to include gtsummary tables.
Changes:
- Fixed bug in
pkg_to_attachlogic that was incorrectly callingclass()on already-extracted class vectors - Added path normalization to ensure output files are created in the correct location
- Added new test coverage for gtsummary tables and file existence verification
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| R/save_with_rmarkdown.R | Fixed class checking bug, added path normalization, updated documentation examples |
| man/save_with_rmarkdown.Rd | Updated documentation examples to show flextable and gt usage |
| tests/testthat/test-save_with_rmarkdown.R | Added file existence checks and new test for gtsummary tables |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
github copilot suggestions Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: b_falquet <64274616+BFalquet@users.noreply.github.com>
We should get the defaults from other packages for this section :)