includeScriptFiles: Load Javascript and CSS Files

Description Usage Arguments Value

View source: R/include_script_files.R

Description

The different tasks for which ShinyPsych provides a framework often work with javascript and are styled up a bit with css. This function loads the appropriate scripts.

Usage

1
includeScriptFiles(fileList = "", globalScript = TRUE, nArms = 0, nOpts = 0)

Arguments

fileList

string. Vector with names to specify the tasks for which the files should be loaded. Valid inputs are "bandit", "dfd", "dfe", "dd", "bart" or any combination of these.

globalScript

logical. If TRUE (default) the global style script (not just used for the tasks) is loaded. Script does not need to be named in fileList.

nArms

integer. The number of arms the bandit should have. Only needed if "bandit" is in fileList.

nOpts

integer. The number of options in a trial are presented. Only needed if fileList contains one of "dfe" or "dfd". If "dfe" the number must be between 2 and 6, if "dfd" the number must be between 2 and 4.

Value

Loaded css and javascript scripts.


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