Learn R Programming

shinysurveys (version 0.1.2)

surveyOutput: Generate the UI Code for demographic questions

Description

Create the UI code for a Shiny app based on user-supplied questions.

Usage

surveyOutput(df, survey_title, survey_description, ...)

Arguments

df

A user supplied data frame in the format of teaching_r_questions.

survey_title

(Optional) user supplied title for the survey

survey_description

(Optional) user supplied description for the survey

...

Additional arguments to pass into actionButton used to submit survey responses.

Value

UI Code for a Shiny App.

Examples

Run this code
# NOT RUN {
if (interactive()) {
surveyOutput(df = shinysurveys::teaching_r_questions,
survey_title = "Teaching R Questions",
survey_description = "Survey used in the Teaching R Study (McGowan et al., 2021)")
}
# }

Run the code above in your browser using DataLab