Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Safeguard suggested {intergraph} package in tests #491

Merged
merged 1 commit into from
Feb 12, 2024
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 tests/testthat/test-ggnet.R
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ test_that("examples", {
expect_error(ggnet(network(data.frame(1:2, 3:4), multiple = TRUE)), "multiplex graphs")

### --- test igraph functionality
if (rq(igraph)) {
if (rq(igraph) && rq(intergraph)) {
# test igraph conversion
p <- ggnet(asIgraph(n))
expect_null(p$guides$colour)
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-ggnet2.R
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ test_that("examples", {
expect_error(ggnet2(network(data.frame(1:2, 3:4), multiple = TRUE)), "multiplex graphs")

### --- test igraph functionality
if (rq(igraph)) {
if (rq(igraph) && rq(intergraph)) {
# test igraph conversion
p <- ggnet2(asIgraph(n), color = "group")
expect_null(p$guides$colour)
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-ggnetworkmap.R
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ test_that("network coercion", {
### --- test igraph functionality

test_that("igraph conversion", {
if (rq(igraph)) {
if (rq(igraph) && rq(intergraph)) {
n <- asIgraph(flights)
p <- ggnetworkmap(net = n)
expect_equal(length(p$layers), 2)
Expand Down
Loading