Skip to content

Commit

Permalink
switched to skip if not installed
Browse files Browse the repository at this point in the history
  • Loading branch information
schochastics committed Jan 23, 2025
1 parent c1a9d16 commit 9e3c3eb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/testthat/test-layout_backbone.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
test_that("backbone layout works", {
skip_on_cran()
testthat::skip_if_not_installed("oaqc")
xy <- layout_as_backbone(igraph::make_full_graph(10))
expect_is(xy$xy, "matrix")
expect_is(xy$backbone, "numeric")
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-layout_multilevel.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
test_that("layout_mulitlevel works", {
skip_on_cran()
testthat::skip_if_not_installed("oaqc")
data("multilvl_ex")
expect_is(layout_as_multilevel(multilvl_ex, type = "all", alpha = 25, beta = 45), "matrix")
expect_is(layout_as_multilevel(multilvl_ex,
Expand Down
1 change: 1 addition & 0 deletions tests/testthat/test-layouts.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
test_that("igraph function calls work", {
testthat::skip_if_not_installed("oaqc")
g <- igraph::make_full_graph(10,FALSE)
igraph::V(g)$lvl <- rep(c(1,2),each = 5)
expect_no_error(layout_igraph_centrality(g,cent = igraph::degree(g)))
Expand Down

0 comments on commit 9e3c3eb

Please sign in to comment.