是否可以在R shiny中的textInput中读取多个值?请看下面的一个简单示例。我希望能够在输入valueS的用户上产生一个总和(或另一个R函数)。用户可以输入:1,2,3,4并看下面这些数字的总和?
shinyUI(fluidPage(
# Copy the line below to make a text input box
textInput("text", label = h3("Text input"), value = "Enter text..."),
hr(),
fluidRow(column(3, verbatimTextOutput("value")))
))
shinyServer(function(input, output) {
# You can access the value of the widget with input$text, e.g.
output$value <- renderPrint({ input$text })
})