create_broker | R Documentation |
A broker is a subclass of reactive. It can hold extra information to facilitate (or broker) communication between the client and the server. For example, an input broker may contain HTML controls to be emitted on the client web page, as well as a function to connect the inputs from the client to the reactive expression.
create_broker(r, controls = NULL, connect = NULL, spec = NULL)
r |
A reactive expression. |
controls |
An HTML control, or a list of HTML controls. |
connect |
A function to run at render time. This function takes the
Shiny |
spec |
Object to put in the Vega spec. |
Other types of brokers are possible. Another broker may create reactive
observers and add information to the Vega spec, instead of having HTML
controls. In this case, a reactive expression is still needed, although
it can be a dummy value, like reactive(NULL)
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.