From 053e09624f66260fb719916fd1bdf9bebf364d91 Mon Sep 17 00:00:00 2001 From: Thomas Lin Pedersen Date: Tue, 7 Nov 2023 13:19:53 +0100 Subject: [PATCH] remove example of deprecated function --- R/label-number-si.R | 9 --------- man/label_number_si.Rd | 12 ------------ 2 files changed, 21 deletions(-) diff --git a/R/label-number-si.R b/R/label-number-si.R index c8e565cc..fd2362fe 100644 --- a/R/label-number-si.R +++ b/R/label-number-si.R @@ -19,15 +19,6 @@ #' @export #' @family labels for continuous scales #' @family labels for log scales -#' @examplesIf getRversion() >= "3.5" -#' # label_number_si() doesn't actually produce SI prefixes: -#' demo_continuous(c(1, 1e9), labels = label_number_si("g")) -#' -#' # If you want real SI prefixes, use cut_si() -#' demo_continuous(c(1, 1e9), labels = label_number(scale_cut = cut_si("m"))) -#' -#' # If you want the existing behavior, use cut_short_scale() -#' demo_continuous(c(1, 1e9), labels = label_number(scale_cut = cut_short_scale())) label_number_si <- function(unit = "", accuracy = NULL, scale = 1, suffix = "", ...) { lifecycle::deprecate_stop( when = "1.2.0", diff --git a/man/label_number_si.Rd b/man/label_number_si.Rd index fa6a7adb..6b5eb31a 100644 --- a/man/label_number_si.Rd +++ b/man/label_number_si.Rd @@ -83,18 +83,6 @@ same results as before with \code{label_number(scale_cut = cut_short_scale())}, or if you want correct SI units, \code{label_number(scale_cut = cut_si("unit"))}. } -\examples{ -\dontshow{if (getRversion() >= "3.5") (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf} -# label_number_si() doesn't actually produce SI prefixes: -demo_continuous(c(1, 1e9), labels = label_number_si("g")) - -# If you want real SI prefixes, use cut_si() -demo_continuous(c(1, 1e9), labels = label_number(scale_cut = cut_si("m"))) - -# If you want the existing behavior, use cut_short_scale() -demo_continuous(c(1, 1e9), labels = label_number(scale_cut = cut_short_scale())) -\dontshow{\}) # examplesIf} -} \seealso{ Other labels for continuous scales: \code{\link{label_bytes}()},