aboutsummaryrefslogtreecommitdiff
path: root/tests/testthat/test_occu.R
diff options
context:
space:
mode:
Diffstat (limited to 'tests/testthat/test_occu.R')
-rw-r--r--tests/testthat/test_occu.R3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/testthat/test_occu.R b/tests/testthat/test_occu.R
index fdcede8..fe52ea7 100644
--- a/tests/testthat/test_occu.R
+++ b/tests/testthat/test_occu.R
@@ -250,7 +250,8 @@ test_that("occu cloglog link function works",{
test_that("occu predict works",{
skip_on_cran()
- skip_if(!require(raster), "raster package unavailable")
+ skip_if(!requireNamespace("raster", quietly=TRUE),
+ "raster package unavailable")
set.seed(55)
R <- 20
J <- 4