Skip to content

Commit

Permalink
Update test-component.adj.matrix.R for #58
Browse files Browse the repository at this point in the history
- add `skip_if_not_installed("vegan")`
  • Loading branch information
brownag authored May 29, 2024
1 parent 0c34139 commit fafe3fe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/testthat/test-component.adj.matrix.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ data(amador)
## tests

test_that("component.adj.matrix works as expected", {

skip_if_not_installed("vegan")

# both methods
m.cm <- component.adj.matrix(amador, method = 'community.matrix')
Expand Down

0 comments on commit fafe3fe

Please sign in to comment.