Description Usage Arguments Details See Also
View source: R/questionnaire.R
questionnaire
is the central function via which the whole questionnaire,
including its questions, responses, and flow logic, is defined.
1 | questionnaire(label, welcome, goodbye, exit, ...)
|
label |
(character) the name/label/text that will be displayed at the top of the UI area assigned to the questionnaire. |
welcome |
(Shiny tag list) the Shiny output that will be displayed as the first page of the questionnaire - the welcome page. |
goodbye |
(Shiny tag list) the Shiny output that will be displayed as the last page of the questionnaire, after the respondent replies to the last question. |
exit |
(function(data.frame)) the callback function that will be called after the interview finishes; the data.frame will contain responses to all interview questions; column names will be named using question ids, and the single row will have the respondent's answers. |
... |
question definitions, non-question UI output, and functions defining the logic of the questionnaire. |
See https://github.com/mtrybulec/interviewer/blob/master/doc/QUICK-START.md
for details on using questionnaire
in Shiny apps.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.