For each input function below:
inputId
and a label
argumenteval=FALSE
from the code chunkHow many inputs can you complete in 10 minutes?
actionButton(inputId = "button", label = "Click me!")
actionLink(inputId = "link", label = "Click me!")
# value - TRUE or FALSE. Should the checkbox begin checked? checkboxInput(inputId = "checkbox", label = "Click me!")
# choices - Character vector. List of values to show checkboxes for. # selected - Character vector. List of checkboxes to begin checked. # inline - TRUE or FALSE. Should the boxes be shown inline (vs. above one another)? checkboxGroupInput(inputId = "checkgroup", label = "Chose from", choices = c("Choice A", "Choice B", "Choice C"), selected = "Choice A", inline = FALSE)
# value - NULL, a Date object, or a string in yyyy-mm-dd format. The starting date. dateInput(inputId= "date", label = "Select a date", value = Sys.Date())
# start - NULL, a Date object, or a string in yyyy-mm-dd format. The initial start date. # end - NULL, a Date object, or a string in yyyy-mm-dd format. The initial end date. dateRangeInput(inputId= "date", label = "Select a date", start = Sys.Date(), end = Sys.Date() + 7)
fileInput(inputId= "file", label = "Upload a data set")
# value - Numeric. Initial value # min - Numeric. Minimum value allowed. # max - Numeric. Maximum value allowed. # step - Numeric. Interval to use when stepping between min and max. numericInput(inputId= "number", label = "Pick a number", value = 0, min = -10, max = 10, step = 0.5)
# value - Character string. Initial value passwordInput(inputId= "password", label = "Enter your password", value = "123456789")
# choices - Character vector. List of values to select from. # selected - Character string. The initial selected value. # inline - TRUE or FALSE. Should the buttons be shown inline (vs. above one another)? radioButtons(inputId= "radio", label = "Choose one", choices = c("Choice A", "Choice B", "Choice C"), selected = "Choice A", inline = FALSE)
# choices - Character vector. List of values to select from. # selected - Character string. The initial selected value. # multiple - TRUE or FALSE. Can user select multiple items? selectInput(inputId= "select", label = "Choose one", choices = c("Choice A", "Choice B", "Choice C"), selected = "Choice A", multiple = FALSE)
# value - Numeric. Initial value # min - Numeric. Minimum value allowed. # max - Numeric. Maximum value allowed. # step - Numeric. Interval to use when stepping between min and max. # animate - TRUE or FALSE. Show simple animation controls with slider? sliderInput(inputId= "slider", label = "Pick a number", value = 0, min = -10, max = 10, step = 0.5)
# value - Character string. Initial value textInput(inputId = "text", label = "Type a name", value = "Fido")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.