Skip to content

Commit 502b9dd

Browse files
committed
put examples in dontrun
1 parent 1bf9517 commit 502b9dd

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

R/estimate_contrasts.R

+2-3
Original file line numberDiff line numberDiff line change
@@ -44,18 +44,17 @@
4444
#' estimated <- estimate_contrasts(lm(Sepal.Width ~ Species, data = iris))
4545
#' standardize(estimated)
4646
#'
47-
#' @examplesIf require("lme4", quietly = TRUE) && require("emmeans", quietly = TRUE)
47+
#' @examplesIf require("lme4", quietly = TRUE) && require("emmeans", quietly = TRUE) && require("rstanarm", quietly = TRUE)
48+
#' \dontrun{
4849
#' # Other models (mixed, Bayesian, ...)
4950
#' data <- iris
5051
#' data$Petal.Length_factor <- ifelse(data$Petal.Length < 4.2, "A", "B")
5152
#'
5253
#' model <- lme4::lmer(Sepal.Width ~ Species + (1 | Petal.Length_factor), data = data)
5354
#' estimate_contrasts(model)
5455
#'
55-
#' @examplesIf require("rstanarm", quietly = TRUE) && require("emmeans", quietly = TRUE)
5656
#' library(rstanarm)
5757
#'
58-
#' \donttest{
5958
#' data <- mtcars
6059
#' data$cyl <- as.factor(data$cyl)
6160
#' data$am <- as.factor(data$am)

man/estimate_contrasts.Rd

+3-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)