Generate an HTML number input

number(min = 0, max = 100, step = 1, value = mean(c(min, max)), title = "")

Arguments

min

minimum

max

maximum

step

increment

value

starting value

title

title of input

Examples

# Run this in a cell to display a number input input <- number(min = 1, max = 10, step = 1, value = 5, title = "Your title") # In another cell, retrieve the value of the number input: as.numeric(input)
#> [1] 5