2014-03-25 37 views
6

试图创建具有以下特点绘制逻辑回归一个ui.r文件:错误RShiny 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") 
    ), 
)  
)) 

Error in tag("div", list(...)):argument is missing, with no default

回答

19

删除您ui.R文件中的最后一个逗号。它期待逗号后的一个论点。

+2

对,这属于[闪亮的常见错误列表](https://groups.google.com/d/topic/shiny-discuss/-4c2JYYKeAI/discussion)(它正在等待一些改进) –

相关问题