I am facing some issues while using index.html to receive date and hour inputs from the user. When entering hours as a number in index.html:
<input type="number" name="var">
and later:
Output Text
<pre id="text1" class="shiny-text-output"></pre>
In server.R:
data <- reactive({
...
dist(input$var)
})
output$text1 <- renderText({
paste("You have selected", input$var)
})
The number input is displayed correctly back in index.html. However, when I replace the number input type with a date:
<input type="date" name="var">
nothing is displayed.
Am I approaching this issue in the wrong way? Any guidance or assistance would be greatly appreciated.
A similar question can be found at Button submit R with shiny, but it does not address using a "date" input.