diff --git a/R/check_overdispersion.R b/R/check_overdispersion.R index 0a9cfb595..3ce54cdf7 100644 --- a/R/check_overdispersion.R +++ b/R/check_overdispersion.R @@ -62,7 +62,7 @@ #' multilevel/hierarchical models. Cambridge; New York: Cambridge University #' Press. #' -#' @examplesIf getRversion() >= "4.0.0" && require("glmmTMB", quietly = TRUE) +#' @examplesIf getRversion() >= "4.0.0" && require("glmmTMB", quietly = TRUE) && require("DHARMa", quietly = TRUE) #' #' library(glmmTMB) #' data(Salamanders) diff --git a/man/check_overdispersion.Rd b/man/check_overdispersion.Rd index e150a81b0..ca0148e97 100644 --- a/man/check_overdispersion.Rd +++ b/man/check_overdispersion.Rd @@ -95,7 +95,7 @@ accurate results. } \examples{ -\dontshow{if (getRversion() >= "4.0.0" && require("glmmTMB", quietly = TRUE)) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf} +\dontshow{if (getRversion() >= "4.0.0" && require("glmmTMB", quietly = TRUE) && require("DHARMa", quietly = TRUE)) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf} library(glmmTMB) data(Salamanders)