Fix R-CMD-check GHA workflow for R-devel: pin roxygen2 7.2.3 on all platforms + tryCatch fallback#141
Closed
Copilot wants to merge 2 commits into
Closed
Fix R-CMD-check GHA workflow for R-devel: pin roxygen2 7.2.3 on all platforms + tryCatch fallback#141Copilot wants to merge 2 commits into
Copilot wants to merge 2 commits into
Conversation
…atch to Roxygenize Co-authored-by: GegznaV <12725868+GegznaV@users.noreply.github.com> Agent-Logs-Url: https://github.com/r-hyperspec/hyperSpec/sessions/05360452-98e9-4711-8e36-a6c89418c84f
Copilot created this pull request from a session on behalf of
GegznaV
March 24, 2026 11:34
View session
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.
roxygen2 7.3.x crashes on
setMethod()calls for primitive generics ([[,[,$, etc.) via aparser_setMethodbug — hyperSpec has 60+ such registrations. The previous workflow skipped installing 7.2.3 on R-devel, falling back to broken 7.3.x. ThetryCatchfallback then attemptedgit checkout HEAD -- NAMESPACE man/but both files were gitignored and never committed, leaving noNAMESPACEfor R CMD check.Changes
.github/workflows/R-CMD-check.yamlif: matrix.config.r != 'devel'from the roxygen2 7.2.3 install step — installs 7.2.3 everywhere. Evidence from CI logs shows theSET_GROWABLE_BITABI break is resolved in current R-devel (7.3.x loads fine); 7.2.3 should load too and lacks theparser_setMethodcrash.devtools::document()intryCatchwith informative diagnostics on git-restore failure (capturessystem2()output/status rather than silently discarding it):matrix.config.r == '3.6'(rgl pin only needed for R 3.6, not current oldrel).find check -name '00check.log'), always runs.checkout@v3→@v6, addpermissions: contents: read,FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true..gitignoreNAMESPACEandman/*.Rd— these need to be committable so thetryCatchgit-restore fallback can actually work for future ABI-break scenarios.