Tutorial by Examples

In many instances, you will want to send data from the R server to the JS client. Here is a very simple example: library(shiny) runApp( list( ui = fluidPage( tags$script( "Shiny.addCustomMessageHandler('message', function(params) { alert(params); });" ), ...
In some instances, you will want to send data from JS client to the R server. Here is a basic example using javascript's Shiny.onInputChange function: library(shiny) runApp( list( ui = fluidPage( # create password input HTML('<input type="password" id="passw...

Page 1 of 1