shiny - Error in RShiny ui.r argument missing -
trying create ui.r file plotting logistic regression following features:
selecting inputs (y-variable: breakdown, x-variables: temperature, humidity, hours) , variable range slider.
i got following error: error in tag("div", list(...)) : argument missing, 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 missing, no default
delete last comma in ui.r file. it's expecting argument after comma.
Comments
Post a Comment