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
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: checked
Title: Systematically Run R CMD Checks
Version: 0.2.8
Version: 0.2.8.9000
Authors@R:
c(
person(
Expand Down
6 changes: 6 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# checked (devel)

* Add `igraph_subgraph_from_edges` wrapper to used work around deprecation
messages and alternate between `igraph::subgraph.edges` and
`igraph::subgraph_from_edges` depending on the `igraph` version.

# checked 0.2.8

* Unify notes, warnings and errors are internally stored when generating
Expand Down
9 changes: 8 additions & 1 deletion R/task_graph.R
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@

# use only strong dependencies to prioritize by topology (leafs first)
strong_edges <- igraph::E(g)[igraph::E(g)$type %in% DEP_STRONG]
g_strong <- igraph::subgraph_from_edges(g, strong_edges, delete.vertices = FALSE)
g_strong <- igraph_subgraph_from_edges(g, strong_edges, delete.vertices = FALSE)
topo <- igraph::topo_sort(g_strong, mode = "in")
priority_topo <- integer(length(g))
priority_topo[match(topo$name, igraph::V(g)$name)] <- rev(seq_along(topo))
Expand Down Expand Up @@ -418,3 +418,10 @@
}
}

igraph_subgraph_from_edges <- function(...) {
if (packageVersion("igraph") < "2.1.0") {
igraph::subgraph.edges(...)

Check warning on line 423 in R/task_graph.R

View check run for this annotation

Codecov / codecov/patch

R/task_graph.R#L423

Added line #L423 was not covered by tests
} else {
igraph::subgraph_from_edges(...)
}
}
Loading