Group 1: Exercise 2

The following module UI includes a critical mistake. What is it and why will it cause problems?

histogramUI <- function(id) {
  tagList(
    selectInput("var", "Variable", choices = names(mtcars)),
    numericInput("bins", "bins", value = 10, min = 1),
    plotOutput("hist")
  )
}