Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions scripts/flavor-package-name.R
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
# * otherwise teach `scripts/flavor.patch` to rewrite it.
#
# The scan covers the R-level surface -- `R/`, `man/`, `tests/`, the vignettes
# R CMD build ships, and `README.md` -- plus the C and C++ glue in `src/`.
# R CMD build ships and the pkgdown articles, and `README.md` -- plus the C and
# C++ glue in `src/`.
# In the glue only the quoted form is checked: `igraph_` there is the C
# library's prefix, which has nothing to do with the R package name.
# Vendored sources under `src/vendor/` and testthat snapshots are left alone.
Expand Down Expand Up @@ -86,12 +87,10 @@ flavor_legitimate_spellings <- c(
# The files to scan, as paths relative to `root`, each named by the pattern that
# applies to it.
flavor_scanned_files <- function(root) {
# `vignettes/articles/` is `.Rbuildignore`d: pkgdown renders it for the
# mainline site, and no flavor ships or builds it.
# `vignettes/articles/` is `.Rbuildignore`d, so no flavor ships it, but
# pkgdown renders it on every flavored commit (scripts/rcc-one.sh), where
# `library(igraph)` attaches the mainline package instead of the flavor.
vignettes <- flavor_dir(root, "vignettes", "[.]([Rr]|[Rr]md|qmd)$")
vignettes <- vignettes[
!startsWith(vignettes, paste0(file.path("vignettes", "articles"), "/"))
]

# `README.md` is the front page GitHub renders for a branch, flavored ones
# included, and the patch rewrites its install instructions. The other
Expand Down
26 changes: 26 additions & 0 deletions scripts/flavor.patch
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,32 @@ index 0040927..27053de 100644

-test_check("igraph")
+test_check("igraph.1.3")
diff --git a/vignettes/articles/deprecated-dot-case.Rmd b/vignettes/articles/deprecated-dot-case.Rmd
index 27ae5b23c2..91abe8ff2c 100644
--- a/vignettes/articles/deprecated-dot-case.Rmd
+++ b/vignettes/articles/deprecated-dot-case.Rmd
@@ -23,7 +23,7 @@ Direct any question to us in the [igraph issue tracker](https://github.com/igrap

```{r setup, echo=FALSE}
deprecated_df <- readr::read_csv(
- system.file('lifecycle', 'deprecated.csv', package = "igraph"),
+ system.file('lifecycle', 'deprecated.csv', package = "igraph.1.3"),
show_col_types = FALSE
)

diff --git a/vignettes/articles/plotting.Rmd b/vignettes/articles/plotting.Rmd
index e30f329994..2ddd683f24 100644
--- a/vignettes/articles/plotting.Rmd
+++ b/vignettes/articles/plotting.Rmd
@@ -15,7 +15,7 @@ set.seed(42) # stable force-directed layouts across rebuilds
```

```{r setup}
-library(igraph)
+library(igraph.1.3)
```

`igraph` ships a native, dependency-light plotting engine built on base R
diff --git a/vignettes/igraph.Rmd b/vignettes/igraph.Rmd
index 6682bc6..5566878 100644
--- a/vignettes/igraph.Rmd
Expand Down
Loading