diff --git a/R/hdi.R b/R/hdi.R index 4fccb8898..3edb676a0 100644 --- a/R/hdi.R +++ b/R/hdi.R @@ -89,7 +89,9 @@ #' bayestestR::hdi(iris[1:4], ci = c(0.80, 0.90, 0.95)) #' \dontrun{ #' library(rstanarm) -#' model <- stan_glm(mpg ~ wt + gear, data = mtcars, chains = 2, iter = 200, refresh = 0) +#' model <- suppressWarnings( +#' stan_glm(mpg ~ wt + gear, data = mtcars, chains = 2, iter = 200, refresh = 0) +#' ) #' hdi(model) #' hdi(model, ci = c(0.80, 0.90, 0.95)) #' diff --git a/man/hdi.Rd b/man/hdi.Rd index a5a78ce9d..9cc686a37 100644 --- a/man/hdi.Rd +++ b/man/hdi.Rd @@ -136,7 +136,9 @@ bayestestR::hdi(iris[1:4]) bayestestR::hdi(iris[1:4], ci = c(0.80, 0.90, 0.95)) \dontrun{ library(rstanarm) -model <- stan_glm(mpg ~ wt + gear, data = mtcars, chains = 2, iter = 200, refresh = 0) +model <- suppressWarnings( + stan_glm(mpg ~ wt + gear, data = mtcars, chains = 2, iter = 200, refresh = 0) +) hdi(model) hdi(model, ci = c(0.80, 0.90, 0.95))