A simple example:
library(shiny)
shinyApp(
ui=fluidPage(
dateInput("date","Choose a date",max=Sys.Date()),
textOutput("text")
),server = function(input, output) {
output$text=renderText(as.character(input$date))
}
)
which has a date input. Currently, the latest date is set to the system date, but I want to change this to the client's date. How do i do that?
(I am aware of posts that talk about how to retrieve client data via javascript, but I don't know how to use those results in a dateInput
object.)