title: Tabs with different sidebars
body: <p>I am trying to create a shiny app with multiple tabs. Each tab is to have its own sidebar. I haven't been able to get this to work. Any help on what is wrong would be appreciated.
  Below is the code</p>
  
  <pre><code>    ui &lt;- fluidPage(
  
    titlePanel("Hi"),    
  
    sidebarLayout(position = "left",
                  sidebarPanel(
                    conditionalPanel(condition = "input.tabs1==1",
                                     selectizeInput('invar',"Reg in", choices = varnames, multiple = TRUE)),
                    conditionalPanel(condition = "input.tabs1==2",
                                     selectizeInput('outvar',"Reg out", choices = predictors, multiple = FALSE)),
  
                  ),
  
                  mainPanel(
                    tabsetPanel(id="tabs1",
                                tabPanel("input",value=1,plotOutput("Input"),
                                tabPanel("output",value=2,plotOutput("Output")
                                ))))
    )) 
  </code></pre>