Skip to content

Commit

Permalink
dontrun -> donttest
Browse files Browse the repository at this point in the history
  • Loading branch information
IndrajeetPatil committed Sep 19, 2023
1 parent 2cac6ee commit 05b7165
Show file tree
Hide file tree
Showing 31 changed files with 36 additions and 36 deletions.
2 changes: 1 addition & 1 deletion R/bootstrap_model.R
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
#' @seealso [`bootstrap_parameters()`], [`simulate_model()`], [`simulate_parameters()`]
#'
#' @examplesIf require("boot", quietly = TRUE) && require("emmeans", quietly = TRUE)
#' \dontrun{
#' \donttest{
#' model <- lm(mpg ~ wt + factor(cyl), data = mtcars)
#' b <- bootstrap_model(model)
#' print(head(b))
Expand Down
2 changes: 1 addition & 1 deletion R/bootstrap_parameters.R
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#' to obtain non-parametric p-values.
#'
#' @examplesIf require("boot", quietly = TRUE) && require("emmeans", quietly = TRUE)
#' \dontrun{
#' \donttest{
#' set.seed(2)
#' model <- lm(Sepal.Length ~ Species * Petal.Width, data = iris)
#' b <- bootstrap_parameters(model)
Expand Down
2 changes: 1 addition & 1 deletion R/cluster_meta.R
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
#'
#'
#' @examples
#' \dontrun{
#' \donttest{
#' data <- iris[1:4]
#'
#' rez1 <- cluster_analysis(data, n = 2, method = "kmeans")
Expand Down
4 changes: 2 additions & 2 deletions R/compare_parameters.R
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
#' # custom style
#' compare_parameters(lm1, lm2, select = "{estimate}{stars} ({se})")
#'
#' \dontrun{
#' \donttest{
#' # custom style, in HTML
#' result <- compare_parameters(lm1, lm2, select = "{estimate}<br>({se})|{p}")
#' print_html(result)
Expand All @@ -51,7 +51,7 @@
#' m1 <- lm(mpg ~ wt, data = mtcars)
#' m2 <- glm(vs ~ wt + cyl, data = mtcars, family = "binomial")
#' compare_parameters(m1, m2)
#' \dontrun{
#' \donttest{
#' # exponentiate coefficients, but not for lm
#' compare_parameters(m1, m2, exponentiate = "nongaussian")
#'
Expand Down
2 changes: 1 addition & 1 deletion R/display.R
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
#' mp <- model_parameters(model)
#' display(mp)
#'
#' \dontrun{
#' \donttest{
#' data(iris)
#' lm1 <- lm(Sepal.Length ~ Species, data = iris)
#' lm2 <- lm(Sepal.Length ~ Species + Petal.Length, data = iris)
Expand Down
2 changes: 1 addition & 1 deletion R/dof.R
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
#'
#' model <- glm(vs ~ mpg * cyl, data = mtcars, family = "binomial")
#' dof(model)
#' \dontrun{
#' \donttest{
#' if (require("lme4", quietly = TRUE)) {
#' model <- lmer(Sepal.Length ~ Petal.Length + (1 | Species), data = iris)
#' dof(model)
Expand Down
2 changes: 1 addition & 1 deletion R/methods_aov.R
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
#' model_parameters(model)
#'
#' @examplesIf requireNamespace("lme4", quietly = TRUE)
#' \dontrun{
#' \donttest{
#' mm <- lmer(Sepal.Length ~ Sepal.Big + Petal.Width + (1 | Species), data = df)
#' model <- anova(mm)
#'
Expand Down
4 changes: 2 additions & 2 deletions R/methods_kmeans.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#' @param ... Arguments passed to or from other methods.
#'
#' @examples
#' \dontrun{
#' \donttest{
#' #
#' # K-means -------------------------------
#' model <- kmeans(iris[1:4], centers = 3)
Expand Down Expand Up @@ -69,7 +69,7 @@ model_parameters.kmeans <- function(model, ...) {
#' @inheritParams cluster_centers
#'
#' @examples
#' \dontrun{
#' \donttest{
#' #
#' # Hierarchical K-means (factoextra::hkclust) ----------------------
#' if (require("factoextra", quietly = TRUE)) {
Expand Down
2 changes: 1 addition & 1 deletion R/methods_metafor.R
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#' model <- rma(yi = effectsize, sei = stderr, method = "REML", data = mydat)
#' model_parameters(model)
#' }
#' \dontrun{
#' \donttest{
#' # with subgroups
#' if (require("metafor", quietly = TRUE)) {
#' data(dat.bcg)
Expand Down
2 changes: 1 addition & 1 deletion R/methods_mice.R
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ model_parameters.mipo <- function(model,
#' fit <- with(data = imp, exp = lm(bmi ~ age + hyp + chl))
#' model_parameters(fit)
#' }
#' \dontrun{
#' \donttest{
#' # model_parameters() also works for models that have no "tidy"-method in mice
#' if (require("mice", quietly = TRUE) && require("gee", quietly = TRUE)) {
#' data(warpbreaks)
Expand Down
2 changes: 1 addition & 1 deletion R/methods_pam.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#' @rdname model_parameters.kmeans
#'
#' @examples
#' \dontrun{
#' \donttest{
#' #
#' # K-Medoids (PAM and HPAM) ==============
#' if (require("cluster", quietly = TRUE)) {
Expand Down
2 changes: 1 addition & 1 deletion R/methods_rstanarm.R
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
#' @inheritSection model_parameters Confidence intervals and approximation of degrees of freedom
#'
#' @examples
#' \dontrun{
#' \donttest{
#' library(parameters)
#' if (require("rstanarm")) {
#' model <- suppressWarnings(stan_glm(
Expand Down
2 changes: 1 addition & 1 deletion R/n_clusters.R
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
#' @note There is also a [`plot()`-method](https://easystats.github.io/see/articles/parameters.html) implemented in the [**see**-package](https://easystats.github.io/see/).
#'
#' @examples
#' \dontrun{
#' \donttest{
#' library(parameters)
#'
#' # The main 'n_clusters' function ===============================
Expand Down
2 changes: 1 addition & 1 deletion R/n_factors.R
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
#' result <- n_factors(mtcars[1:5], type = "FA")
#' as.data.frame(result)
#' summary(result)
#' \dontrun{
#' \donttest{
#' # Setting package = 'all' will increase the number of methods (but is slow)
#' n_factors(mtcars, type = "PCA", package = "all")
#' n_factors(mtcars, type = "FA", algorithm = "mle", package = "all")
Expand Down
2 changes: 1 addition & 1 deletion R/print.parameters_model.R
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@
#' result <- compare_parameters(lm1, lm2, select = "{estimate}{stars} ({se})")
#' print(result)
#'
#' \dontrun{
#' \donttest{
#' # custom style, in HTML
#' result <- compare_parameters(lm1, lm2, select = "{estimate}<br>({se})|{p}")
#' print_html(result)
Expand Down
2 changes: 1 addition & 1 deletion R/simulate_parameters.R
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
#' model <- lm(Sepal.Length ~ Species * Petal.Width + Petal.Length, data = iris)
#' simulate_parameters(model)
#'
#' \dontrun{
#' \donttest{
#' if (require("glmmTMB", quietly = TRUE)) {
#' model <- glmmTMB(
#' count ~ spp + mined + (1 | site),
Expand Down
2 changes: 1 addition & 1 deletion man/bootstrap_model.Rd

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

2 changes: 1 addition & 1 deletion man/bootstrap_parameters.Rd

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

2 changes: 1 addition & 1 deletion man/cluster_meta.Rd

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

4 changes: 2 additions & 2 deletions man/compare_parameters.Rd

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

2 changes: 1 addition & 1 deletion man/degrees_of_freedom.Rd

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

2 changes: 1 addition & 1 deletion man/display.parameters_model.Rd

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

2 changes: 1 addition & 1 deletion man/model_parameters.aov.Rd

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

6 changes: 3 additions & 3 deletions man/model_parameters.kmeans.Rd

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

2 changes: 1 addition & 1 deletion man/model_parameters.mira.Rd

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

2 changes: 1 addition & 1 deletion man/model_parameters.rma.Rd

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

2 changes: 1 addition & 1 deletion man/model_parameters.stanreg.Rd

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

2 changes: 1 addition & 1 deletion man/n_clusters.Rd

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

2 changes: 1 addition & 1 deletion man/n_factors.Rd

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

2 changes: 1 addition & 1 deletion man/print.parameters_model.Rd

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

2 changes: 1 addition & 1 deletion man/simulate_parameters.Rd

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

0 comments on commit 05b7165

Please sign in to comment.