Relative Content

Tag Archive for rshiny

updateSelectInput not working inside a observeEvent

I am trying to clear a selection in a Shiny app in R programming, so that when I do it my selections go back to NULL or an empty string, and my map can identify that it clear so it should go back to default values. But when I select the clear group, the values in the select input stay the same, they don’t update and I’m not sure about why.

updateSelectInput not updating values in observeEvent in Shiny

I am trying to clear a selection in a Shiny app in R programming, so that when I do it my selections go back to NULL or an empty string, and my map can identify that it clear so it should go back to default values. But when I select the clear group, the values in the select input stay the same, they don’t update and I’m not sure about why.

Preselect actionButton in Shiny

I would like to preselect one specific actionButton when the session opens. I set as default value that my actionButton "two" should be selected. However, I have not found a way to change the style of the button in a way that the button looks greyish (selected) when the session starts. I know that the style can be changed in general with style = "..." but then it doesn’t go back to normal when another button is selected.

Update checkboxGroupInput-choices with a vector

I would like to dynamically update the choices of a checkboxGroupInput in R Shiny using a vector.
However, a vector used in updateSelectInput does only create text without boxes whereas directly in checkboxGroupInput it works.

R Shiny: Update checkboxGroupInput-choices with a vector

I would like to dynamically update the choices of a checkboxGroupInput in R Shiny using a vector.
However, a vector used in updateSelectInput does only create text without boxes whereas directly in checkboxGroupInput it works.