# NOT RUN {
if (interactive()) {
# run this line
shiny::selectInput(
"state",
"Choose a state:",
list(
`East Coast` = list("NY", "NJ", "CT"),
`West Coast` = list("WA", "OR", "CA"),
`Midwest` = list("MN", "WI", "IA")
)
)
# the output will automatically be used here
view_ui(close_after = 6)
}
# }
Run the code above in your browser using DataLab