Skip to content

Print the rows in x that do not appear in y in print.compare_ard() - #607

Open
malanbos wants to merge 1 commit into
pharmaverse:mainfrom
malanbos:fix/print-compare-ard-missing-rows
Open

Print the rows in x that do not appear in y in print.compare_ard()#607
malanbos wants to merge 1 commit into
pharmaverse:mainfrom
malanbos:fix/print-compare-ard-missing-rows

Conversation

@malanbos

@malanbos malanbos commented Aug 24, 2026

Copy link
Copy Markdown
Collaborator

What changes are proposed in this pull request?

The rows_in_x_not_y branch built the data frame and discarded it, so the block printed its header and nothing else; it now prints, matching the rows_in_y_not_x branch immediately below it.

print.compare_ard() had no test coverage at all, which is how this survived, so this adds snapshot tests covering equal ARDs, rows missing from y, and rows missing from x.

I have left NEWS.md alone — the bullet above is ready to copy in at merge time.

Reference GitHub issue associated with pull request.

Closes #605


Pre-review Checklist (if item does not apply, mark is as complete)

  • All GitHub Action workflows pass with a ✅
  • PR branch has pulled the most recent updates from master branch: usethis::pr_merge_main()
  • If a bug was fixed, a unit test was added.
  • Code coverage is suitable for any new functions/features (generally, 100% coverage for new code): devtools::test_coverage()
  • Request a reviewer

Reviewer Checklist (if item does not apply, mark is as complete)

  • If a bug was fixed, a unit test was added.
  • Run pkgdown::build_site(). Check the R console for errors, and review the rendered website.
  • Code coverage is suitable for any new functions/features: devtools::test_coverage()

When the branch is ready to be merged:

  • Update NEWS.md with the changes from this pull request under the heading "# cards (development version)". If there is an issue associated with the pull request, reference it in parentheses at the end update (see NEWS.md for examples).
  • All GitHub Action workflows pass with a ✅
  • Approve Pull Request
  • Merge the PR. Please use "Squash and merge" or "Rebase and merge".

The branch reporting rows present in `x` but not in `y` built the data
frame and discarded it, so the block was announced and never shown. The
`rows_in_y_not_x` branch below it already printed. Adds snapshot tests
for `print.compare_ard()`, which had no coverage.
@malanbos
malanbos requested a review from ddsjoberg August 24, 2026 14:28
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.

Bug Report: print.compare_ard() does not print the rows in x that are not in y

1 participant