dot-banditCustomMessage: Send Custom Message for Bandit Task from R to Javascript in...

Description Usage Arguments Value

Description

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

Usage

1
.banditCustomMessage(Arms, contrlVals, distribList, sess, containerOb, rDigits)

Arguments

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 createCtrlList.

distribList

list. Must at least contain the number of trials "nTrials" (usually the one used to create the distributions with createBanditList).

sess

The session object from the shiny app.

containerOb

list. Contains the outcomes of all bandit games. Usually this list is created with createBanditList.

rDigits

integer. Is passed to round. Indicates the number of digits the total point value displayed should be rounded to.

Value

An html page then displayed by the shiny app.


ndphillips/ShinyPsych documentation built on Feb. 14, 2022, 5:53 p.m.