【发布时间】:2020-01-26 23:27:37
【问题描述】:
当最小/最大范围较大时,sliderInput 舍入我的起始值参数时遇到问题。在以下示例的情况下,如何防止 sliderInput 舍入我的起始值参数?
library(shiny)
ui <- fluidPage(
sliderInput(
inputId = "test",
label = "A Nice Label",
min = 2.52,
max = 45734.68,
value = 30982.63, # auto rounded to nearest integer in application, which I do not want it to do.
round = FALSE # tried this argument, no dice.
),
verbatimTextOutput(
"value"
)
)
## SERVER PROCESSING DEFINITION
# this section defines how data is processed in response to manipulations in the ui
server <- function(input, output, session) {
output$value <- renderText({
input$test
})
}
shinyApp(ui, server)
【问题讨论】: