Skip to content

Commit

Permalink
put all examples in dontrun
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Oct 18, 2024
1 parent 502b9dd commit d20353a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
5 changes: 2 additions & 3 deletions R/estimate_contrasts.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
#'
#' @inherit estimate_slopes details
#'
#' @examplesIf require("emmeans", quietly = TRUE)
#' @examplesIf require("lme4", quietly = TRUE) && require("emmeans", quietly = TRUE) && require("rstanarm", quietly = TRUE)

Check warning on line 17 in R/estimate_contrasts.R

View workflow job for this annotation

GitHub Actions / lint-changed-files / lint-changed-files

file=R/estimate_contrasts.R,line=17,col=121,[line_length_linter] Lines should not be more than 120 characters. This line is 123 characters.

Check warning on line 17 in R/estimate_contrasts.R

View workflow job for this annotation

GitHub Actions / lint / lint

file=R/estimate_contrasts.R,line=17,col=121,[line_length_linter] Lines should not be more than 120 characters. This line is 123 characters.
#' \dontrun{
#' # Basic usage
#' model <- lm(Sepal.Width ~ Species, data = iris)
#' estimate_contrasts(model)
Expand Down Expand Up @@ -44,8 +45,6 @@
#' estimated <- estimate_contrasts(lm(Sepal.Width ~ Species, data = iris))
#' standardize(estimated)
#'
#' @examplesIf require("lme4", quietly = TRUE) && require("emmeans", quietly = TRUE) && require("rstanarm", quietly = TRUE)
#' \dontrun{
#' # Other models (mixed, Bayesian, ...)
#' data <- iris
#' data$Petal.Length_factor <- ifelse(data$Petal.Length < 4.2, "A", "B")
Expand Down
7 changes: 3 additions & 4 deletions man/estimate_contrasts.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d20353a

Please sign in to comment.