Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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

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)")
}

shinysurveys

Create and Deploy Surveys in 'Shiny'

v0.1.2
MIT + file LICENSE
Authors
Jonathan Trattner [aut, cre] (<https://orcid.org/0000-0002-1097-7603>), Lucy D'Agostino McGowan [aut], Paul Le Grand [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.