【问题标题】:server output r shiny shows attempt to apply non-function error服务器输出 r shiny 显示尝试应用非功能错误
【发布时间】:2019-08-16 10:35:18
【问题描述】:

我创建了一个闪亮的应用程序,如下所示

 library(shiny)
 library(shinydashboard)
 library(shinydashboardPlus)
 ui <- dashboardPage(
 dashboardHeader(title = "Visualization tool", titleWidth = "250"),
 dashboardSidebar(width = '250', fluidRow(
 div(numericInput(inputId = "ID", label = "ID1", value = 0, min = 0, max = 
 1000)))),
 dashboardBody(
 fluidRow(column(7,textOutput(outputId = "Table2")))))
 server <- function(input, output) {   
 output$Table2=renderText({
 value=input$ID()
 return(value)
 })}


 shinyApp(ui, server)

该应用在侧边栏中有一个输入框,生成的数字应呈现在主面板上。 Hoewevr,我收到以下错误

 attempt to apply non-function

我找不到问题。请求某人检查并提出解决方案

【问题讨论】:

    标签: r dashboard shinydashboard


    【解决方案1】:

    我发现了错误

       server <- function(input, output) {   
       output$Table2=renderText({
       value=input$ID
       return(value)
        })}
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-04-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-06-09
      • 1970-01-01
      • 1970-01-01
      • 2017-11-16
      相关资源
      最近更新 更多