The Shiny documentation mentions that for selectInput():
selectInput()
selected The value (or, if none was supplied, the title) of the naviga
selected
Answering after 6 years, as I got the same error now. We can write selected = character(0) to force not selecting any user input.
selected = character(0)