Hello R Studio Community,
I understand this is not currently a reproducible example, but maybe I can describe the issue that I am having and there will be a simple way to fix it, that I am overlooking. Below is the code for shiny app to have a slider updated, such that the values of sliders "muA" and "mu0" can't be equal. When run, the slider will go haywire and not let the user change values, oscillating back and forth between two values. How can I update this updateSliderInput() fx such that this doesn't happen?
observe({
updateSliderInput(session, "muA", value = ifelse(input$mu0 == input$muA,
ifelse(input$mu0 == 3, input$muA - 0.5, input$muA + 0.5),
input$muA))
})
Link to app: https://wbakerrobinson.shinyapps.io/One_Sample_T_test_shiny/
Thank you,
Will Baker-Robinson