In this brilliant application, I need to allow the user to check only one checkbox. Anyway to achieve this?
ui.R
library(shiny) shinyUI(fluidPage( titlePanel("abc"), sidebarLayout( sidebarPanel( checkboxGroupInput("choice", "What will you like to see?", choices=c("red","green")), conditionalPanel( condition = "input.choice == 'red'", sliderInput("slider1","slide",min=0,max=100,value=100,step=1,animate=TRUE)), conditionalPanel( condition="input.choice=='green'", selectInput("choice","Select", c("a","b","c")), sliderInput("slider2","slide",min=0,max=100,value=100,step=1,animate=TRUE)) ), mainPanel( "abc" ) ) ))
server.R
shinyServer(function(input, output) { } )
source share