r Using action buttons to hide/show checkboxes
<p>Say I had the following code...</p>

<p>ui.r</p>

<pre><code>library(shiny)

    ui &lt;- fluidPage(
      actionButton("fishButton", label = "Fish"),
      checkboxGroupInput("Check1",label=h4 ("Fish:"), choices = c("Bass","Shark","Tuna")),
      actionButton("reptileButton", label = "Reptile"),
      checkboxGroupInput("Check2",label=h4 ("Reptile:"), choices = c("Komodo","Skink","Snake")),
      actionButton("mammalButton", label = "Mammal"),
      checkboxGroupInput("Check3",label=h4 ("Mammals:"), choices = c("Dog","Cat","Bear")),
      actionButton("birdButton", label = "Bird"),
      checkboxGroupInput("Check4",label=h4 ("Birds:"), choices = c("Budgie","Parrot","Cockatiel")),
      actionButton("amphibianButton", label = "Amphibian"),
      checkboxGroupInput("Check5",label=h4 ("Amphibian:"), choices = c("Frog","Toad","Salamander"))
    )
</code></pre>

<p>Is there a way to use conditional panels to hide/show the checkboxGroups by clicking on the appropriate actionButton? As I understand it the actionButton only stores an integer that starts at 0 and increases by 1 with each click of the button, which doesn´t seem very helpful in this case.  Would it be possible to have a conditional panel that only showed itself when it´s actionButton value was an even number or somesuch?</p>