Questions tagged «shiny-reactivity»

3
R闪亮传递对selectInput选择的反应
在服务器端的一个闪亮的应用程序中(通过RStudio),我有一个反应式,可以通过解析a的内容来返回变量列表textInput。然后在selectInput和/或中使用变量列表updateSelectInput。 我不能使它工作。有什么建议? 我做了两次尝试。第一种方法是outVar直接使用反应堆selectInput。第二种方法是使用反应性outVar在updateSelectInput。都不行。 服务器 shinyServer( function(input, output, session) { outVar <- reactive({ vars <- all.vars(parse(text=input$inBody)) vars <- as.list(vars) return(vars) }) output$inBody <- renderUI({ textInput(inputId = "inBody", label = h4("Enter a function:"), value = "a+b+c") }) output$inVar <- renderUI({ ## works but the choices are non-reactive selectInput(inputId = "inVar", label = …
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.