Skip to content

Commit d20353a

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

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
@@ -14,7 +14,8 @@
1414
#'
1515
#' @inherit estimate_slopes details
1616
#'
17-
#' @examplesIf require("emmeans", quietly = TRUE)
17+
#' @examplesIf require("lme4", quietly = TRUE) && require("emmeans", quietly = TRUE) && require("rstanarm", quietly = TRUE)
18+
#' \dontrun{
1819
#' # Basic usage
1920
#' model <- lm(Sepal.Width ~ Species, data = iris)
2021
#' estimate_contrasts(model)
@@ -44,8 +45,6 @@
4445
#' estimated <- estimate_contrasts(lm(Sepal.Width ~ Species, data = iris))
4546
#' standardize(estimated)
4647
#'
47-
#' @examplesIf require("lme4", quietly = TRUE) && require("emmeans", quietly = TRUE) && require("rstanarm", quietly = TRUE)
48-
#' \dontrun{
4948
#' # Other models (mixed, Bayesian, ...)
5049
#' data <- iris
5150
#' data$Petal.Length_factor <- ifelse(data$Petal.Length < 4.2, "A", "B")

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)