O'Reilly logo

Learning Shiny by Hernán G. Resnizky

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required