Using Shiny.setInputValue

  • Avoids the creation of an input binding (faster to code).
  • Can not be updated from R

Note: If you need to set the input even when the value did not change you need to specify a priority option.

Shiny.setInputValue('myinput', value, {priority: 'event'});