diff --git a/R/n_factors.R b/R/n_factors.R index 5231fadba..f9ee0d592 100644 --- a/R/n_factors.R +++ b/R/n_factors.R @@ -45,7 +45,7 @@ #' implemented in the [**see**-package](https://easystats.github.io/see/). #' `n_components()` is a convenient short-cut for `n_factors(type = "PCA")`. #' -#' @examplesIf require("PCDimension", quietly = TRUE) && require("nFactors", quietly = TRUE) +#' @examplesIf require("PCDimension", quietly = TRUE) && require("nFactors", quietly = TRUE) && require("EGAnet", quietly = TRUE) && require("psych", quietly = TRUE) #' library(parameters) #' n_factors(mtcars, type = "PCA") #' diff --git a/man/n_factors.Rd b/man/n_factors.Rd index a2c99261e..0bbf5f570 100644 --- a/man/n_factors.Rd +++ b/man/n_factors.Rd @@ -89,7 +89,7 @@ implemented in the \href{https://easystats.github.io/see/}{\strong{see}-package} \code{n_components()} is a convenient short-cut for \code{n_factors(type = "PCA")}. } \examples{ -\dontshow{if (require("PCDimension", quietly = TRUE) && require("nFactors", quietly = TRUE)) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf} +\dontshow{if (require("PCDimension", quietly = TRUE) && require("nFactors", quietly = TRUE) && require("EGAnet", quietly = TRUE) && require("psych", quietly = TRUE)) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf} library(parameters) n_factors(mtcars, type = "PCA")