Description Usage Arguments Value
View source: R/include_script_files.R
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.
1 | includeScriptFiles(fileList = "", globalScript = TRUE, nArms = 0, nOpts = 0)
|
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. |
Loaded css and javascript scripts.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.