Add a slider to an R markdown document.

input_slider(id, label, value, min, max, step = 1)

Arguments

id

Valid CSS id of the element.

label

Label to display.

value

Initial value of the slider.

min, max

Minimum and maximum value the slider can be set.

step

Interval between steps.

Examples

input_slider(
  "mySlider",
  "The label",
  value = 5,
  min = 0,
  max = 10
)