diff options
author | Ken Kellner <ken@kenkellner.com> | 2024-01-14 22:16:02 -0500 |
---|---|---|
committer | Ken Kellner <ken@kenkellner.com> | 2024-01-14 22:16:02 -0500 |
commit | b036f63e38f59e4824a6d8cbf631ebac0472b1a4 (patch) | |
tree | 357e74bd33334ebe5b29fe2cc67ec205255f0600 | |
parent | f77003443cb16eb37e4a112ed4720a2f9225572d (diff) |
Move coda to suggests
-rw-r--r-- | DESCRIPTION | 4 | ||||
-rw-r--r-- | NAMESPACE | 2 | ||||
-rw-r--r-- | R/bigCrossCorr.R | 3 |
3 files changed, 6 insertions, 3 deletions
diff --git a/DESCRIPTION b/DESCRIPTION index 8e54eeb..3a90dae 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -4,8 +4,8 @@ Title: Functions and Data for the Book 'Applied Hierarchical Modeling in Ecology Version: 0.2.11 Date: 2024-01-14 Depends: R (>= 2.10) -Imports: grDevices, graphics, methods, stats, utils, coda, unmarked (>= 0.12.2), mvtnorm -Suggests: fields, raster, sp, spdep +Imports: grDevices, graphics, methods, stats, utils, unmarked (>= 0.12.2), mvtnorm +Suggests: coda, fields, raster, sp, spdep Authors@R: c( person("Marc", "Kéry", role="aut"), person("Andy", "Royle", role="aut"), @@ -20,7 +20,7 @@ importFrom("unmarked", "unmarkedFrameOccu", "unmarkedFramePCount", "unmarkedFram # importFrom("RandomFields", "RFoptions", "RFsimulate", "RMexp") #importFrom("fields", "circulantEmbeddingSetup", "circulantEmbedding") #importFrom("sp", "bubble", "coordinates<-") -importFrom("coda", "crosscorr") +#importFrom("coda", "crosscorr") importFrom("mvtnorm", "dmvnorm") diff --git a/R/bigCrossCorr.R b/R/bigCrossCorr.R index 10ab028..978ef7e 100644 --- a/R/bigCrossCorr.R +++ b/R/bigCrossCorr.R @@ -14,6 +14,9 @@ bigCrossCorr <- function(x, big = 0.6, digits=3) { # See ?coda::crosscorr for details # # Mike Meredith, 1 Jan 2017 + + # Load required package + checkNamespace("coda") if(!inherits(x, c("mcmc", "mcmc.list"))) stop("'x' must be an 'mcmc' or 'mcmc.list' object.") |