Provide the new generic for parsing Shiny Input


parseShinyInput(x, shinysession, name)

parseShinyInput.default(x, shinysession, name)

parseShinyInput.shinyMatrix(x, shinysession, name)

parseShinyInput.shinyDate(x, shinysession, name)


The value of this input as provided by the client, deserialized using RJSONIO, then passed through a call to structure to set the class of the object. Note that the call to structure does convert NULL values to an empty list.
The shinysession in which the input exists.
The name of the input


Provides an S3 generic to parse incoming Shiny JSON data. When defined on a particular class, Shiny will use S3 dispatch to refine the data passed back from the client before making it available in the input variable of the server.R file.

Pass the data straight through if no class is provided.

Takes a list-of-lists and returns a matrix. The lists must all be the same length. NULLs and empty lists are replaced by NA.


The type of a custom Shiny Input widget will be deduced using the getType() JavaScript function on the registered Shiny inputBinding. This type will then be set as the incoming object's class.

The provided function will be used to parse the data delivered from the client before it is available in the input variable.


parseShinyInput.myIntegerClass <- function(x, shinysession, name){ as.integer(x) }