Handle _R_CHECK_DEPENDS_ONLY_ correctly for other.Rraw to work in -occasional CI#7832
Open
MichaelChirico wants to merge 7 commits into
Open
Handle _R_CHECK_DEPENDS_ONLY_ correctly for other.Rraw to work in -occasional CI#7832MichaelChirico wants to merge 7 commits into
MichaelChirico wants to merge 7 commits into
Conversation
MichaelChirico
force-pushed
the
occasional-fix
branch
from
July 23, 2026 22:51
6c17ed0 to
8959629
Compare
MichaelChirico
force-pushed
the
occasional-fix
branch
3 times, most recently
from
July 23, 2026 23:17
dcbf1f9 to
0dec4cc
Compare
Generated via commit 3829679 Download link for the artifact containing the test results: ↓ atime-results.zip
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## other-attach-order #7832 +/- ##
=====================================================
Coverage ? 99.01%
=====================================================
Files ? 88
Lines ? 17234
Branches ? 0
=====================================================
Hits ? 17065
Misses ? 169
Partials ? 0 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
MichaelChirico
force-pushed
the
other-attach-order
branch
from
July 24, 2026 06:05
5dde771 to
58ce9c4
Compare
MichaelChirico
force-pushed
the
occasional-fix
branch
from
July 24, 2026 06:05
0dec4cc to
3829679
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

This should resolve the main issue with other.Rraw failing broadly.
This GHA-only fix was diagnosed and fixed by Gemini (to be precise: any change written by Gemini is kept pristine and annotated in the commit message). That diagnosis (lightly edited) follows:
Setting
_R_CHECK_DEPENDS_ONLY_: falsein .github/workflows/R-CMD-check-occasional.yaml overrides a default behavior of--as-craninR CMD checkthat hides optional packages from the test suite:1. Default Behavior of
--as-craninR CMD checkUnder
--as-cran, R automatically enables_R_CHECK_DEPENDS_ONLY_=true:data.table/.github/workflows/R-CMD-check-occasional.yaml
Line 117 in fae95de
When active, R creates a restricted, temporary library (
.libPaths()) during the check containing only the packages explicitly listed in DESCRIPTION (Depends,Imports,Suggests, andEnhances), plus base/recommended R packages. Any other packages installed on the system are hidden from the search path during test execution.2. Why This Broke
other.Rrawin CIIn step 82 of R-CMD-check-occasional.yaml, the workflow installs "fully optional packages" (
other_pkgssuch ascaret,dplyr,ggplot2,sf,vctrs, etc.) so they can be tested for interoperability in inst/tests/other.Rraw. These optional packages are intentionally not listed indata.table'sDESCRIPTIONfile.Because they are omitted from
DESCRIPTION,--as-cranstripped them from.libPaths()during check execution. Even though the step successfully installed all 19 optional packages and setTEST_DATA_TABLE_WITH_OTHER_PACKAGES=TRUE, insideR CMD check,other.Rrawcould not find them and aborted across all CI runners with:3. Effect of the Change
By explicitly setting
_R_CHECK_DEPENDS_ONLY_: false, we preventR CMD checkfrom isolating the check library strictly toDESCRIPTIONdependencies. This allowsother.Rrawto see and attach the optional packages installed in the runner library during the check.