Skip to content

fix(flavor): Rename the package in the pkgdown articles too - #3062

Merged
schochastics merged 1 commit into
mainfrom
fix/flavor-articles
Dec 4, 2026
Merged

schochastics merged 1 commit into
mainfrom
fix/flavor-articles

Conversation

@schochastics

Copy link
Copy Markdown
Contributor

The flavor guard (scripts/flavor-package-name.R) skipped vignettes/articles/ because it is .Rbuildignored and "no flavor ships or builds it". The first half is true; the second isn't. The rcc pkgdown gate (scripts/rcc-one.sh) runs pkgdown::build_site() on every flavored commit, which renders the articles against the flavored package. There, library(igraph) attaches the mainline package instead:

This scans the articles like the vignettes and adds scripts/flavor.patch hunks for both.

Tested:

  • flavor_package_name_offenders(".") is empty, and test-flavor-package-name.R passes.
  • scripts/flavor.sh dev in a Debian container applies the patch and spells both articles igraph.dev.

Heads-up for #3034, which moves the topic vignettes to vignettes/articles/: after this, the guard scans them there, so their flavor.patch hunks need the vignettes/articles/… paths.

🤖 Generated with Claude Code

`vignettes/articles/` is `.Rbuildignore`d, so the flavor guard skipped it on
the grounds that no flavor builds it. But the rcc `pkgdown` gate renders the
site on every flavored commit, where `library(igraph)` attaches the mainline
package: the plotting article added with #2711 then fails on
`scale_vertex_color()`, which CRAN's igraph lacks, and the deprecation table
article reads the mainline package's file, or none.

Scan the articles like the vignettes, and teach scripts/flavor.patch to
rewrite both.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@schochastics
schochastics enabled auto-merge (squash) December 4, 2026 09:59
auto-merge was automatically disabled December 4, 2026 10:06

Repository rule violations found

@schochastics
schochastics merged commit 6302685 into main Dec 4, 2026
9 checks passed
@schochastics
schochastics deleted the fix/flavor-articles branch December 4, 2026 10:19
schochastics added a commit to schochastics/rigraph that referenced this pull request Dec 4, 2026
)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 6302685)
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