From 68f4fc789a024616e527e825166008b9458e0f11 Mon Sep 17 00:00:00 2001 From: simonpcouch Date: Wed, 23 Oct 2024 11:54:36 -0500 Subject: [PATCH] skip examples without probably --- R/adjust-equivocal-zone.R | 2 +- R/adjust-predictions-custom.R | 2 +- R/adjust-probability-calibration.R | 2 +- R/adjust-probability-threshold.R | 2 +- R/tailor.R | 2 +- man/adjust_equivocal_zone.Rd | 2 +- man/adjust_predictions_custom.Rd | 2 +- man/adjust_probability_threshold.Rd | 2 +- man/tailor.Rd | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/R/adjust-equivocal-zone.R b/R/adjust-equivocal-zone.R index 92d3f7d..822f66e 100644 --- a/R/adjust-equivocal-zone.R +++ b/R/adjust-equivocal-zone.R @@ -16,7 +16,7 @@ #' this adjustment just collects metadata on the supplied column names and does #' not risk data leakage. #' -#' @examplesIf rlang::is_installed("modeldata") +#' @examplesIf rlang::is_installed(c("probably", "modeldata")) #' library(dplyr) #' library(modeldata) #' diff --git a/R/adjust-predictions-custom.R b/R/adjust-predictions-custom.R index 5ca5df0..df62f09 100644 --- a/R/adjust-predictions-custom.R +++ b/R/adjust-predictions-custom.R @@ -10,7 +10,7 @@ #' #' @inheritSection adjust_equivocal_zone Data Usage #' -#' @examplesIf rlang::is_installed("modeldata") +#' @examplesIf rlang::is_installed(c("probably", "modeldata")) #' library(modeldata) #' #' head(two_class_example) diff --git a/R/adjust-probability-calibration.R b/R/adjust-probability-calibration.R index 8a5ca5e..d8bcf4d 100644 --- a/R/adjust-probability-calibration.R +++ b/R/adjust-probability-calibration.R @@ -16,7 +16,7 @@ #' @inheritSection adjust_numeric_calibration Data Usage #' #' @examplesIf FALSE -# @examplesIf rlang::is_installed("modeldata") +# @examplesIf rlang::is_installed(c("probably", "modeldata")) #' library(modeldata) #' #' # split example data diff --git a/R/adjust-probability-threshold.R b/R/adjust-probability-threshold.R index 2ee095e..f74ca47 100644 --- a/R/adjust-probability-threshold.R +++ b/R/adjust-probability-threshold.R @@ -15,7 +15,7 @@ #' #' @inheritSection adjust_equivocal_zone Data Usage #' -#' @examplesIf rlang::is_installed("modeldata") +#' @examplesIf rlang::is_installed(c("probably", "modeldata")) #' library(modeldata) #' #' # `predicted` gives hard class predictions based on probability threshold .5 diff --git a/R/tailor.R b/R/tailor.R index 5b67b54..07c2449 100644 --- a/R/tailor.R +++ b/R/tailor.R @@ -32,7 +32,7 @@ #' `"multiclass"` types, and can also be passed at `fit()` time instead. #' The column names of class probability estimates. These should be given in #' the order of the factor levels of the `estimate`. -#' @examplesIf rlang::is_installed("modeldata") +#' @examplesIf rlang::is_installed(c("probably", "modeldata")) #' library(dplyr) #' library(modeldata) #' diff --git a/man/adjust_equivocal_zone.Rd b/man/adjust_equivocal_zone.Rd index 1e3d5f6..2c970ce 100644 --- a/man/adjust_equivocal_zone.Rd +++ b/man/adjust_equivocal_zone.Rd @@ -29,7 +29,7 @@ not risk data leakage. } \examples{ -\dontshow{if (rlang::is_installed("modeldata")) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf} +\dontshow{if (rlang::is_installed(c("probably", "modeldata"))) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf} library(dplyr) library(modeldata) diff --git a/man/adjust_predictions_custom.Rd b/man/adjust_predictions_custom.Rd index 7bba8ca..a339cfc 100644 --- a/man/adjust_predictions_custom.Rd +++ b/man/adjust_predictions_custom.Rd @@ -27,7 +27,7 @@ not risk data leakage. } \examples{ -\dontshow{if (rlang::is_installed("modeldata")) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf} +\dontshow{if (rlang::is_installed(c("probably", "modeldata"))) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf} library(modeldata) head(two_class_example) diff --git a/man/adjust_probability_threshold.Rd b/man/adjust_probability_threshold.Rd index 7ee673d..4478864 100644 --- a/man/adjust_probability_threshold.Rd +++ b/man/adjust_probability_threshold.Rd @@ -30,7 +30,7 @@ not risk data leakage. } \examples{ -\dontshow{if (rlang::is_installed("modeldata")) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf} +\dontshow{if (rlang::is_installed(c("probably", "modeldata"))) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf} library(modeldata) # `predicted` gives hard class predictions based on probability threshold .5 diff --git a/man/tailor.Rd b/man/tailor.Rd index 41763fb..4aff6ad 100644 --- a/man/tailor.Rd +++ b/man/tailor.Rd @@ -43,7 +43,7 @@ with the \href{https://tidymodels.org}{tidymodels} framework; for greatest ease of use, situate tailors in model workflows with \code{?workflows::add_tailor()}. } \examples{ -\dontshow{if (rlang::is_installed("modeldata")) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf} +\dontshow{if (rlang::is_installed(c("probably", "modeldata"))) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf} library(dplyr) library(modeldata)