Shiny sliders don't seem to be working for me with dates, but they work fine with numbers. This works:
library(shiny)
ui <- fluidPage(
sliderInput("range", "Range", min = 0, max = 10, value = c(2, 4)) )
shinyApp(ui, function(...) {})
Screenshot of slider with numeric values
This doesn't:
library(shiny)
ui <- fluidPage(
sliderInput("range", "Range", min = as.Date("2021-01-01"), max = as.Date("2021-12-31"), value = c(as.Date("2021-02-02"), as.Date("2021-03-03")))
)
shinyApp(ui, function(...) {})
It just produces a blank box:
Any advice much appreciated.