diff options
author | Ken Kellner <ken@kenkellner.com> | 2023-12-10 09:12:00 -0500 |
---|---|---|
committer | Ken Kellner <ken@kenkellner.com> | 2023-12-10 09:12:00 -0500 |
commit | b55858ec371bb201ca00fa3e7ef6ce1ca713bea5 (patch) | |
tree | eda6080975573467c792e6b1255a1fe8c928ff6d | |
parent | da0efc3f696e7e1a42ea9166a97a799a98f3ca79 (diff) |
Remove pkgdown from suggests
-rw-r--r-- | DESCRIPTION | 12 | ||||
-rw-r--r-- | tests/testthat/test_occu.R | 3 | ||||
-rw-r--r-- | tests/testthat/test_predict.R | 6 |
3 files changed, 15 insertions, 6 deletions
diff --git a/DESCRIPTION b/DESCRIPTION index 87d8c4f..b36057d 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: unmarked -Version: 1.3.2.9004 -Date: 2023-10-20 +Version: 1.3.2.9005 +Date: 2023-12-10 Type: Package Title: Models for Data from Unmarked Animals Authors@R: c( @@ -32,7 +32,13 @@ Imports: stats, TMB (>= 1.7.18), utils -Suggests: knitr, rmarkdown, pkgdown, raster, shiny, terra, testthat +Suggests: + knitr, + rmarkdown, + raster, + shiny, + testthat, + terra Description: Fits hierarchical models of animal abundance and occurrence to data collected using survey methods such as point counts, site occupancy sampling, distance sampling, removal sampling, and double observer sampling. Parameters governing the state and observation processes can be modeled as functions of covariates. References: Kellner et al. (2023) <doi:10.1111/2041-210X.14123>, Fiske and Chandler (2011) <doi:10.18637/jss.v043.i10>. License: GPL (>=3) LazyLoad: yes 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 diff --git a/tests/testthat/test_predict.R b/tests/testthat/test_predict.R index 686da9b..3582470 100644 --- a/tests/testthat/test_predict.R +++ b/tests/testthat/test_predict.R @@ -103,7 +103,8 @@ test_that("clean_up_covs works with models where length(y) != length(p)",{ test_that("predicting from raster works",{ - skip_if(!require(raster), "raster package unavailable") + skip_if(!requireNamespace("raster", quietly=TRUE), + "raster package unavailable") set.seed(123) # Create rasters @@ -141,7 +142,8 @@ test_that("predicting from raster works",{ test_that("predicting from terra::rast works",{ - skip_if(!require(terra), "terra package unavailable") + skip_if(!requireNamespace("terra", quietly=TRUE), + "terra package unavailable") set.seed(123) # Create rasters |