From 8715b53396c198050018f6916bfbc97a193a3985 Mon Sep 17 00:00:00 2001 From: damirpolat Date: Sun, 12 Mar 2023 15:17:45 -0600 Subject: [PATCH] do not run SimpleKMeans example --- R/LearnerClustSimpleKMeans.R | 10 +++++++++- man/mlr_learners_clust.SimpleKMeans.Rd | 4 +++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/R/LearnerClustSimpleKMeans.R b/R/LearnerClustSimpleKMeans.R index b434d728..04fa02cc 100644 --- a/R/LearnerClustSimpleKMeans.R +++ b/R/LearnerClustSimpleKMeans.R @@ -11,7 +11,15 @@ #' #' @templateVar id clust.SimpleKMeans #' @template learner -#' @template example +#' @examples +#' \dontrun{ +#' if (requireNamespace("RWeka")) { +#' learner = mlr3::lrn("clust.SimpleKMeans") +#' print(learner) +#' +#' # available parameters: +#' learner$param_set$ids() +#' }} #' #' @export LearnerClustSimpleKMeans = R6Class("LearnerClustSimpleKMeans", diff --git a/man/mlr_learners_clust.SimpleKMeans.Rd b/man/mlr_learners_clust.SimpleKMeans.Rd index 41ca9582..8f3129de 100644 --- a/man/mlr_learners_clust.SimpleKMeans.Rd +++ b/man/mlr_learners_clust.SimpleKMeans.Rd @@ -52,13 +52,15 @@ lrn("clust.SimpleKMeans") } \examples{ +\dontrun{ if (requireNamespace("RWeka")) { learner = mlr3::lrn("clust.SimpleKMeans") print(learner) # available parameters: learner$param_set$ids() -} +}} + } \section{Super classes}{ \code{\link[mlr3:Learner]{mlr3::Learner}} -> \code{\link[mlr3cluster:LearnerClust]{mlr3cluster::LearnerClust}} -> \code{LearnerClustSimpleKMeans}