Skip to content

fix: do not wrap roxygenize in try() (#2679)#2690

Merged
schochastics merged 4 commits into
mainfrom
fix-2679-roxygenize-no-try
Jun 5, 2026
Merged

fix: do not wrap roxygenize in try() (#2679)#2690
schochastics merged 4 commits into
mainfrom
fix-2679-roxygenize-no-try

Conversation

@schochastics

@schochastics schochastics commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

Summary

Fixes #2679.

The roxygenize composite action wrapped roxygen2::roxygenize() in try(), which swallowed any error and let the Rscript step exit 0. As a result the workflow continued (and committed) even when documentation generation failed, leaving stale docs and masking upstream issues.

This removes the try() so failures propagate, the step exits non-zero, and the calling R-CMD-check job halts as intended.

Change

  • .github/workflows/roxygenize/action.yml: try(roxygen2::roxygenize())roxygen2::roxygenize()

schochastics and others added 4 commits June 4, 2026 22:08
Wrapping roxygen2::roxygenize() in try() suppressed errors and let the
workflow continue even when documentation generation failed, leaving
stale docs and masking upstream issues. Remove try() so failures surface
and halt the build.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Now that roxygenize() no longer swallows errors, the step fails with
"there is no package called 'igraph.r2cdocs'" because the roxygen2
dependency group was never installed. The custom roclets require
igraph.r2cdocs and devtag (listed in Config/Needs/roxygen2), so add
roxygen2 to the install step's needs.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@schochastics schochastics merged commit e69a361 into main Jun 5, 2026
1 check passed
@schochastics schochastics deleted the fix-2679-roxygenize-no-try branch June 5, 2026 05:40
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.

roxygenize workflow should not use try()

1 participant