R programming

R Shiny selectInput dependent on another input
How to create an R Shiny selectInput control which is dependent on another select input. Two methods with code examples are shown: creating a reactive output variable, and using Shiny observe and observeEvent functions.