From 689d86fe4aec5874625017afc012dfd93b7f4ce4 Mon Sep 17 00:00:00 2001 From: Daniel Date: Tue, 15 Oct 2024 10:13:45 +0200 Subject: [PATCH] put everything in dontrun --- R/bayesfactor.R | 2 +- man/bayesfactor.Rd | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/R/bayesfactor.R b/R/bayesfactor.R index 55ab1c241..3ccd69e06 100644 --- a/R/bayesfactor.R +++ b/R/bayesfactor.R @@ -22,6 +22,7 @@ #' @note There is also a [`plot()`-method](https://easystats.github.io/see/articles/bayestestR.html) implemented in the \href{https://easystats.github.io/see/}{\pkg{see}-package}. #' #' @examplesIf require("rstanarm") && require("logspline") +#' \dontrun{ #' library(bayestestR) #' #' prior <- distribution_normal(1000, mean = 0, sd = 1) @@ -29,7 +30,6 @@ #' #' bayesfactor(posterior, prior = prior, verbose = FALSE) #' -#' \dontrun{ #' # rstanarm models #' # --------------- #' model <- suppressWarnings(rstanarm::stan_lmer(extra ~ group + (1 | ID), data = sleep)) diff --git a/man/bayesfactor.Rd b/man/bayesfactor.Rd index 9d27f25fe..40b208081 100644 --- a/man/bayesfactor.Rd +++ b/man/bayesfactor.Rd @@ -63,6 +63,7 @@ There is also a \href{https://easystats.github.io/see/articles/bayestestR.html}{ } \examples{ \dontshow{if (require("rstanarm") && require("logspline")) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf} +\dontrun{ library(bayestestR) prior <- distribution_normal(1000, mean = 0, sd = 1) @@ -70,7 +71,6 @@ posterior <- distribution_normal(1000, mean = 0.5, sd = 0.3) bayesfactor(posterior, prior = prior, verbose = FALSE) -\dontrun{ # rstanarm models # --------------- model <- suppressWarnings(rstanarm::stan_lmer(extra ~ group + (1 | ID), data = sleep))