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

shiny_widget_translation

Shiny Widget Translation


Description

A collection of functions to map REDCap question types as exported by the REDCap API to native Shiny widgets.

Usage

shinyREDCap_textInput(id, field_label, value = NULL, placeholder = NULL, ...)

shinyREDCap_dateInput(id, field_label, value = NULL, ...)

shinyREDCap_dropdown(id, field_label, required, choices, value = NULL, ...)

shinyREDCap_truefalse(id, field_label, required, value = NULL, ...)

shinyREDCap_yesno(id, field_label, required, value = NULL, ...)

shinyREDCap_radio(id, field_label, required, choices, value = NULL, ...)

shinyREDCap_checkbox(id, field_label, choices, value = NULL, ...)

shinyREDCap_notes(id, field_label, value = NULL, ...)

shinyREDCap_integer(id, field_label, value = NULL, ...)

Arguments

id

A string, containing a globally unique REDCap question identifier. Used to create a valid Shiny inputID.

field_label

A string containing the question being asked. May contain html formatting.

value

Default value or previous data if question has previously been answered

placeholder

Placeholder text to help a reviewer decide how to answer the question

...

Any additional parameters to pass to shiny widget inputs.

required

A string, "yes" or "no". Is this a required REDCap question type?

choices

REDCap choices for the question.

Value

A shiny input widget for the UI


ReviewR

A Light-Weight, Portable Tool for Reviewing Individual Patient Records

v2.3.6
BSD_3_clause + file LICENSE
Authors
Laura Wiley [aut] (<https://orcid.org/0000-0001-6681-9754>), Luke Rasmussen [aut] (<https://orcid.org/0000-0002-4497-8049>), David Mayer [cre, aut], The Wiley Lab [cph, fnd]
Initial release

We don't support your browser anymore

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