diff --git a/R/umap.R b/R/umap.R index 9549c82..5c53ece 100644 --- a/R/umap.R +++ b/R/umap.R @@ -71,7 +71,7 @@ #' "How UMAP Works" #' \url{https://umap-learn.readthedocs.io/en/latest/how_umap_works.html} #' -#' @examplesIf rlang::is_installed("ggplot2") +#' @examplesIf rlang::is_installed("ggplot2") && rlang::is_installed("irlba", version = "2.3.5.2") #' library(recipes) #' library(ggplot2) #' diff --git a/man/step_umap.Rd b/man/step_umap.Rd index c5da569..773551f 100644 --- a/man/step_umap.Rd +++ b/man/step_umap.Rd @@ -147,7 +147,7 @@ prepped recipes, see the \href{https://rstudio.github.io/bundle/}{bundle} packag } \examples{ -\dontshow{if (rlang::is_installed("ggplot2")) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf} +\dontshow{if (rlang::is_installed("ggplot2") && rlang::is_installed("irlba", version = "2.3.5.2")) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf} library(recipes) library(ggplot2)