Input updates
These functions are particularly useful when the options of an input are determined in some way by another input. For example, if a continent was one input and a country the other, the options of the latter would be restricted by the selection of the first.
In order to use input updates, the Shiny server needs to be initialized with an additional session argument. This means that the following should not be the starting line:
shinyServer(function(input, output){
Instead of the preceding code, this must be the starting line:
shinyServer(function(input, output,session){
Session is an optional parameter that can be included in the Shiny server function calls. This creates an object of the session class that keeps track of certain session ...
Get Learning Shiny now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.