Description Usage Arguments Value Author(s) Examples
View source: R/concerto.template.show.R
Display template to test participant.
1 2 3 4 5 | concerto.template.show(templateID = -1, HTML = "", head = "",
params = list(), timeLimit = 0, finalize = FALSE,
workspaceID = concerto$workspaceID, effectShow = "default",
effectShowOptions = "default", effectHide = "default",
effectHideOptions = "default")
|
templateID |
Template ID or name. |
HTML |
Template HTML. |
head |
Template head tag. |
params |
Named list with parameters we want to be inserted into template HTML. |
timeLimit |
Time limit after which template will be auto submitted (in seconds). |
finalize |
Logical: TRUE if after this template there is no more logic available. |
workspaceID |
Concerto workspace ID where template object is located. |
effectShow |
Template show transition effect. |
effectShowOptions |
Template show transition effect options list. |
effectHide |
Template hide transition effect. |
effectHideOptions |
Template hide transition effect options list. |
Returns a named list with template specific input gathered from user and static variables:
LAST_PRESSED_BUTTON_NAMEcharacter: name of the button that submitted the template
OUT_OF_TIMEnumeric: 1 if time limit has been reached and 0 if it hasn't
TIME_TAKENnumeric: time taken to submit the template
Przemyslaw Lis
1 2 3 4 5 | ## Not run:
response1 <- concerto.template.show(1)
response2 <- concerto.template.show(HTML='<div align='center'>Hello world!</div>')
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.