Chapter 11 Communicate between R and JS

Learning objectives:

  • Explain the main mechanisms behind a Shiny app responsible for driving the R/JavaScript communication.

  • This is crucial if you aim at developing your very own Shiny input widgets.


HTTP Limitation

  • The connection is closed after each request.
  • We need a permanent connection, allowing bidirectional fluxes between R and JS