questionnaire: Define an 'interviewer' questionnaire.

Description Usage Arguments Details See Also

View source: R/questionnaire.R

Description

questionnaire is the central function via which the whole questionnaire, including its questions, responses, and flow logic, is defined.

Usage

1
questionnaire(label, welcome, goodbye, exit, ...)

Arguments

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.

Details

See https://github.com/mtrybulec/interviewer/blob/master/doc/QUICK-START.md for details on using questionnaire in Shiny apps.

See Also

runExample.


mtrybulec/interviewer documentation built on May 23, 2019, 8:20 a.m.