2014-03-25 61 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)(它正在等待一些改進) –

相關問題