I have R Shiny app with the "radioButtons" element and default selected value is "1".
radioButtons("rbtn_metrics", "Metric", choices = list("Metric_1" = 1, "Metric_2" = 2, "Metric_3" = 3), selected = 1)
Let say user selected the second element (2) and see data for "Metric_2".
Then he makes other selections, UI is updated, and radioButtons element set by default to "1".
How to keep the second element (2) as a default selected value in this case?
Thanks!