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

Put rq() behind skip_if_not() #503

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
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
12 changes: 6 additions & 6 deletions tests/testthat/test-ggnet.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ if ("package:igraph" %in% search()) {
detach("package:igraph")
}

rq(network) # network objects
rq(sna) # placement and centrality
skip_if_not(rq(network)) # network objects
skip_if_not(rq(sna)) # placement and centrality

rq(ggplot2) # grammar of graphics
rq(grid) # arrows
rq(scales) # sizing
skip_if_not(rq(ggplot2)) # grammar of graphics
skip_if_not(rq(grid)) # arrows
skip_if_not(rq(scales)) # sizing

rq(intergraph) # test igraph conversion
skip_if_not(rq(intergraph)) # test igraph conversion

test_that("examples", {
### --- start: documented examples
Expand Down
14 changes: 7 additions & 7 deletions tests/testthat/test-ggnet2.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ if ("package:igraph" %in% search()) {
detach("package:igraph")
}

rq(network) # network objects
rq(sna) # placement and centrality
skip_if_not(rq(network)) # network objects
skip_if_not(rq(sna)) # placement and centrality

rq(ggplot2) # grammar of graphics
rq(grid) # arrows
rq(scales) # sizing
skip_if_not(rq(ggplot2)) # grammar of graphics
skip_if_not(rq(grid)) # arrows
skip_if_not(rq(scales)) # sizing

rq(intergraph) # test igraph conversion
rq(RColorBrewer) # test ColorBrewer palettes
skip_if_not(rq(intergraph)) # test igraph conversion
skip_if_not(rq(RColorBrewer)) # test ColorBrewer palettes

test_that("examples", {
### --- start: documented examples
Expand Down