R shiny passing reactive to selectInput choices

You need to use renderUI on the server side for dynamic UIs. Here is a minimal example. Note that the second drop-down menu is reactive and adjusts to the dataset you choose in the first one. The code should be self-explanatory if you have dealt with shiny before. runApp(list( ui = bootstrapPage( selectInput(‘dataset’, ‘Choose Dataset’, … Read more