Skip to content

Conversation

@dewittpe
Copy link
Owner

@dewittpe dewittpe commented Dec 4, 2025

No description provided.

@codecov
Copy link

codecov bot commented Dec 4, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.12%. Comparing base (6f1ad4c) to head (32deb4d).
⚠️ Report is 46 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #24      +/-   ##
==========================================
+ Coverage   95.83%   96.12%   +0.28%     
==========================================
  Files          17       17              
  Lines        1153     1238      +85     
==========================================
+ Hits         1105     1190      +85     
  Misses         48       48              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@dewittpe dewittpe added the enhancement New feature or request label Dec 11, 2025
@dewittpe dewittpe self-assigned this Dec 12, 2025
Prior to this change requireNamespace set a variable.    This worked on
my machine but failed in GitHub Actions.

- tests/test-data-frame-tools.R: mdcr_inner_join() on a tibble input is returning something that isn’t identical to the expected tibble.
- tests/test-tibble-datatable.R: for a data.table input, comorbidities() is returning something that isn’t a data.table (data.table::is.data.table(DTS[[obj]]) is FALSE).

  Both symptoms are exactly what you’d get if the package was loaded with ..mdcr.dplyr.aware.. and ..mdcr.datatable.aware.. set to FALSE, so the joins fall back to base merge() and the comorbidity
  pipeline runs through the data.frame code paths, even though dplyr/data.table are actually installed later in the session. In your workflow, r-lib installs Suggests (data.table/dplyr show up in
  the log), but if the namespace was loaded before those Suggests were on the library path (or under _R_CHECK_DEPENDS_ONLY_), those flags would be locked to FALSE for the rest of the session, giving
  exactly these test failures.

This commit reverts to using requireNamespace() to prevent this from
happening.
@dewittpe dewittpe merged commit 5ce8bbe into main Dec 12, 2025
9 checks passed
@dewittpe dewittpe deleted the tidyverse-support branch December 17, 2025 19:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants