Remove deprecated arguments to sliderInput

This commit is contained in:
Hadley Wickham
2021-01-27 08:42:28 -06:00
parent b165127d20
commit 08ab21b50e
3 changed files with 5 additions and 25 deletions

View File

@@ -5,6 +5,8 @@ shiny 1.6.0.9000
### Breaking changes
* The `format` and `locale` arguments to `sliderInput()` have been removed. They have been deprecated since 0.10.2.2 (released on 2014-12-08).
### Minor new features and improvements
* Switched from `digest::digest()` to `rlang::hash()` for hashing. (#3264)

View File

@@ -19,8 +19,6 @@
#' number of digits (for example, 1 will round to the nearest 10, and -2 will
#' round to the nearest .01). Any rounding will be applied after snapping to
#' the nearest step.
#' @param format Deprecated.
#' @param locale Deprecated.
#' @param ticks `FALSE` to hide tick marks, `TRUE` to show them
#' according to some simple heuristics.
#' @param animate `TRUE` to show simple animation controls with default
@@ -78,23 +76,9 @@
#'
#' @export
sliderInput <- function(inputId, label, min, max, value, step = NULL,
round = FALSE, format = NULL, locale = NULL,
ticks = TRUE, animate = FALSE, width = NULL, sep = ",",
pre = NULL, post = NULL, timeFormat = NULL,
timezone = NULL, dragRange = TRUE) {
if (!missing(format)) {
shinyDeprecated(
"0.10.2.2", "sliderInput(format =)",
details = "Use `sep`, `pre`, and `post` instead."
)
}
if (!missing(locale)) {
shinyDeprecated(
"0.10.2.2", "sliderInput(locale =)",
details = "Use `sep`, `pre`, and `post` instead."
)
}
round = FALSE, ticks = TRUE, animate = FALSE,
width = NULL, sep = ",", pre = NULL, post = NULL,
timeFormat = NULL, timezone = NULL, dragRange = TRUE) {
validate_slider_value(min, max, value, "sliderInput")
dataType <- getSliderType(min, max, value)

View File

@@ -13,8 +13,6 @@ sliderInput(
value,
step = NULL,
round = FALSE,
format = NULL,
locale = NULL,
ticks = TRUE,
animate = FALSE,
width = NULL,
@@ -57,10 +55,6 @@ number of digits (for example, 1 will round to the nearest 10, and -2 will
round to the nearest .01). Any rounding will be applied after snapping to
the nearest step.}
\item{format}{Deprecated.}
\item{locale}{Deprecated.}
\item{ticks}{\code{FALSE} to hide tick marks, \code{TRUE} to show them
according to some simple heuristics.}