R Shiny - digital input without selectors
2 answers
You can use textInput and have reactive()
that converts it to numeric, for example if numInput
is the name of your textInput:
In server.R:
numConv <- reactive({as.numeric(input$numInput)})
Then, anywhere in relation to input$numInput
, will change to numConv()
. You can add whatever code you want to be responsive, so you can perform additional checks to make sure the user is entering valid input before they initiate all other calculations in your application.
+5
source to share