checkboxGroupInput() ... accessing checked/unchecked values reactively

1,274 views
Skip to first unread message

Daniel Bowen

unread,
Nov 29, 2012, 3:20:33 AM11/29/12
to shiny-...@googlegroups.com
I can get the grouped checkboxes to show up in a panel in my app. How then do I observe when a user checks/unchecks one of the checkboxes in the group?

In a regular checkbox, I have the liberty to define the inputId:

checkboxInput(inputId = "checkbox1", label = "Checkbox 1", value = FALSE)

... and retrieve shinyServer() with:

input$checkbox1


How do I access selected/unselected checkboxes form a group of checkboxes (checkboxesGroupInput())?

- Dan 

Daniel Bowen

unread,
Nov 29, 2012, 3:22:15 AM11/29/12
to shiny-...@googlegroups.com
... more concisely: What are the inputId's for these checkboxes? I do not see them when I print(names(input)) to the terminal, while the app is running.

- Dan

Joe Cheng

unread,
Nov 29, 2012, 3:46:52 AM11/29/12
to shiny-...@googlegroups.com
The checkbox group itself has an inputId, and the value is a vector of all the selected values. 

Sent from my phone

--
 
 

Reply all
Reply to author
Forward
Message has been deleted
0 new messages