【问题标题】:Error in RShiny ui.r argument missing [closed]RShiny ui.r 参数丢失 [关闭]
【发布时间】:2017-11-09 04:16:22
【问题描述】:

尝试创建一个 ui.r 文件以绘制具有以下特征的逻辑回归:

选择输入(y 变量:分解,x 变量:温度、湿度、小时)和可变范围滑块。

我收到以下错误:Error in tag("div", list(...)) : argument is missing, with no default

require(shiny)    
shinyUI(pageWithSidebar(
  headerPanel("Home Automation Data Model - TV"),      
  sidebarPanel(
    wellPanel(
      selectInput(
        inputId = "x_var",
        label = "X variable",
        choices = c(
          "Temperature (Celcius)" = "Temp",
          "Humidity (Percentage)" = "Hum",
          "Hours" = "Hrs"
        ),
        selected = "Temperature"
      ),

      uiOutput("x_range_slider")
    ),      

    wellPanel(
      selectInput(
        inputId = "y_var",
        label = "Y variable",
        choices = c("Breakdowns (Yes/No)" = "y"),
      ),

      uiOutput("y_range_slider")
    ),        

    wellPanel(
      p(strong("Model predictions")),
      checkboxInput(inputId = "mod_logistic",    label = "Logistic (dot-dash)"),
      conditionalPanel(
        condition = "input.mod_loess == true",
        sliderInput(
          inputId = "mod_loess_span",
          label = "Smoothing (alpha)",
          min = 0.15,
          max = 1,
          step = 0.05,
          value = 0.75
        )
      )
    )
  ),

  mainPanel(
    plotOutput(outputId = "main_plot"),        
    conditionalPanel(
      "input.mod_logistic == true",
      p(strong("Logit model")),
      verbatimTextOutput(outputId = "mod_logistic_text")
    ),
  )      
))

标签错误("div", list(...)): 参数丢失,没有默认值

【问题讨论】:

    标签: r shiny


    【解决方案1】:

    删除 ui.R 文件中的最后一个逗号。它期待逗号后的参数。

    【讨论】:

    猜你喜欢
    • 2019-09-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-02-23
    • 2020-02-14
    • 2014-06-22
    • 1970-01-01
    相关资源
    最近更新 更多