According to the technical documentation here, the switchinput I'm using should default to TRUE at start. I'm just copying in the code from example. In the example code below, it defaults to FALSE.
Any obvious reason why or does it seem buggy?
library(shiny)
library(bslib)
library(shinyWidgets)
ui <- fluidPage(
navbarPage(
theme = bs_theme(bootswatch = "flatly", version = 4),
title = 'Methods',
tabPanel('One'),
),
mainPanel(
h1('Hello World'),
switchInput(
inputId = "Id012",
value = TRUE
),
)
)
server <- function(input, output) {
}
shinyApp(ui, server)