ddPage: Set up HTML Logic for the Delay Discounting Task

Description Usage Arguments Value

View source: R/dd_page.R

Description

Create html page from a list created by createDdList and control client side communication.

Usage

1
2
3
4
5
6
7
8
9
ddPage(
  ctrlVals,
  container,
  trialTitle = "Trial",
  trialTitlePractice = "Practice Trial",
  withPracticeTrial = FALSE,
  displayTitle = TRUE,
  nTrials = 10
)

Arguments

ctrlVals

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

container

list. Containins the outcome time pairs and other information on how to set up the tasks. Can be created with createDdList

trialTitle

string. Is displayed as title of the trial, e.g. if it is set to "Trial" the displayed title in trial 2 of 10 will be "Trial 2 of 10". Only needed if displayTitle is TRUE.

trialTitlePractice

string. Is displayed as title of the practice trial. Only needed if displayTitle is TRUE.

withPracticeTrial

logical. If TRUE (default is FALSE) a practice trial has to be provided and is included.

displayTitle

logical. If TRUE (default) a title is displayed.

nTrials

integer. The number of trials played WITHOUT the practice trial.

Value

An html page that can be displayed by the shiny app.


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