diff --git a/R/dummy_hash.R b/R/dummy_hash.R index b4cfea4e..0921aafa 100644 --- a/R/dummy_hash.R +++ b/R/dummy_hash.R @@ -67,6 +67,7 @@ #' @family Steps for Numeric Variables From Characters #' #' @examplesIf rlang::is_installed("text2vec") +#' \dontrun{ #' library(recipes) #' library(modeldata) #' data(grants) @@ -74,7 +75,6 @@ #' grants_rec <- recipe(~sponsor_code, data = grants_other) %>% #' step_dummy_hash(sponsor_code) #' -#' \dontrun{ #' grants_obj <- grants_rec %>% #' prep() #' diff --git a/man/step_dummy_hash.Rd b/man/step_dummy_hash.Rd index e106bf05..dfd1cbe7 100644 --- a/man/step_dummy_hash.Rd +++ b/man/step_dummy_hash.Rd @@ -116,6 +116,7 @@ The underlying operation does not allow for case weights. \examples{ \dontshow{if (rlang::is_installed("text2vec")) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf} +\dontrun{ library(recipes) library(modeldata) data(grants) @@ -123,7 +124,6 @@ data(grants) grants_rec <- recipe(~sponsor_code, data = grants_other) \%>\% step_dummy_hash(sponsor_code) -\dontrun{ grants_obj <- grants_rec \%>\% prep()