I have created dynamic sibebar menus in R shinydashboard. Even though I use selected = TRUE, no menuItem associated with a menu gets selected at startup in this
selected = TRUE
Why not using an observer which is called only once at app init
observe({ # called only once at app init updateTabItems(session, "tabs", "m2") })