-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Validate input parameters #1656
Comments
I personally use a simple css:
The css |
@stla could you elaborate a bit more how you do this? Maybe a MWE? Figured it out myself. Sorry stla. (adding it for noobs like me): library(shiny) ui <- fluidPage( numericInput("myValue", "My Variable", min = 0, max = 1, step = 0.5, value = 0.5), server <- function(input, output) { shinyApp(ui, server) |
Another potential improvement with numeric input validation. With max value set, it is possible to give a number beyond that if we clear the numeric text and type the number. For example, one of the shiny-examples, 050-kmeans-example, max is set to 9 for |
Closing since we now have https://github.com/rstudio/shinyvalidate |
We should do input validation and print a message/warning when things are off. For example, for
numericInput()
, we allow the min being greater than the max or the value out of the min-max range, without any indication something is off...The text was updated successfully, but these errors were encountered: