Description Usage Arguments Value Examples
Used for shiny::selectInput
to allow you to
update its selection when its choices change.
1 | update_selected(value, choices, index = NULL)
|
value |
character vector, current value of an input |
choices |
character vector, new choices for an input |
index |
integer, if |
character vector of proposed selection
1 2 3 4 | update_selected("a", c("a", "b", "c"))
update_selected("a", NULL)
update_selected("d", c("a", "b", "c"))
update_selected("d", c("a", "b", "c"), index = 1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.