Description Usage Arguments Value
Send the information needed for the bandit task from R to javascript. What exact information has to be sent depends on the number of arms specified. More on custom messages on https://shiny.rstudio.com/reference/shiny/latest/session.html
1 | .banditCustomMessage(Arms, contrlVals, distribList, sess, containerOb, rDigits)
|
Arms |
integer. The number of arms of the bandit. Has to be between 2 and 6. |
contrlVals |
list of reactive values. Controls the flow through the
Experiment. Can be created with |
distribList |
list. Must at least contain the number of trials "nTrials"
(usually the one used to create the distributions with
|
sess |
The session object from the shiny app. |
containerOb |
list. Contains the outcomes of all bandit games.
Usually this list is created with |
rDigits |
integer. Is passed to |
An html page then displayed by the shiny app.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.