createBartPage: Create an HTML Page to Display and Play the BART

Description Usage Arguments Value

View source: R/create_bart_page.R

Description

Create an HTML page by using the shiny package and send balloon information to javascript. To get the ctrlVals list call createCtrlList and to for the balloonList call createBartList. The function only works from within a shiny app (i.e. html code will also be produced when this function is called from outside a shiny app but nothing will be displayed).

Usage

1
createBartPage(ctrlVals, session, balloonList, RDrawBoundary = TRUE)

Arguments

ctrlVals

list of reactive values. Controls the flow through the Experiment. Can be created with createCtrlList.

session

The session object from a shiny app.

balloonList

list. Contains information about the balloons, such as the pop values. Can be created with createBartList.

RDrawBoundary

logical. If TRUE (default) an outer boundary is drawn to indicate the maximum possible pump value (not the actual pop value of that respective balloon!).

Value

An html page displayed in the shiny app.


mdsteiner/ShinyPsych documentation built on Feb. 12, 2022, 2:09 p.m.