Skip to content

Fix R-CMD-check CI on oldrel-4 (xgboost needs R >= 4.3.0) - #282

Merged
EmilHvitfeldt merged 1 commit into
mainfrom
fix-ci-oldrel-xgboost
Sep 26, 2026
Merged

EmilHvitfeldt merged 1 commit into
mainfrom
fix-ci-oldrel-xgboost

Conversation

@EmilHvitfeldt

Copy link
Copy Markdown
Member

Summary

  • The oldrel-4 legs of R-CMD-check (ubuntu and windows, running R 4.2) have been failing because xgboost (a Suggests dependency) now requires R >= 4.3.0, so pak::lockfile_create() cannot resolve dependencies and the job fails before any tests run (see failure on Add step_adjust_linear() for linear adjustment #281: Could not solve package dependencies: * xgboost: Needs R >= 4.3.0).
  • Uses pak's ?ignore-before-r remote spec (documented in r-lib/actions/setup-r-dependencies) to skip installing xgboost when running on R < 4.3.0, so those legs can install everything else and run the checks that don't rely on xgboost.

Test plan

  • CI passes on all matrix legs, including ubuntu-latest (oldrel-4) and windows-latest (oldrel-4)

xgboost now requires R >= 4.3.0, so pak can't resolve dependencies on
the oldrel-4 CI legs (R 4.2), failing the whole job before any checks
run. Use pak's ignore-before-r syntax to skip installing xgboost there.
@EmilHvitfeldt
EmilHvitfeldt merged commit 65c5b48 into main Sep 26, 2026
14 checks passed
@EmilHvitfeldt
EmilHvitfeldt deleted the fix-ci-oldrel-xgboost branch September 26, 2026 19:32
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.

1 participant