Skip to content

Conversation

@Melkiades
Copy link
Contributor

@Melkiades Melkiades commented Sep 30, 2025

We should get the defaults from other packages for this section :)

Copy link
Contributor Author

@Melkiades Melkiades left a 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

Copy link
Contributor

Copilot AI left a 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_attach logic that was incorrectly calling class() 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>
@Melkiades Melkiades merged commit c882722 into main Jan 22, 2026
9 checks passed
@Melkiades Melkiades deleted the 0_small_fixes branch January 22, 2026 14:51
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