pacman::p_load(shiny, shinyTime)
ui <- fluidPage(
# Default value is 00:00:00
timeInput(inputId="time1", "Time:"),
# Set to current time
timeInput(inputId="time2", "Time:", value = Sys.time()),
# Set to custom time
timeInput(inputId="time3", "Time:", value = strptime("12:34:56", "%T")),
# Use %H:%M format
timeInput(inputId="time4", "Time:", seconds = FALSE)
)
server<- function(input, output,session) { }
shinyApp(ui, server)
https://shiny.posit.co/r/articles/build/layout-guide/ Build > Frontend> User interface> Application layout guide JANUARY 10, 2024 Overview Shiny apps use Bootstrap, an extremely popular HTML/CSS framework, (though no prior experience with Bootstrap is necessary).As a result, the best way to Read more…
Warning in …. :the condition has length > 1 and only the first element will be used comparing a vector with a scalar=> R automatically takes the first element of var