I'm working on my first shiny app. It's a simple line plot. I'm getting an error message on my selectinput line in the server.r file. What argument am I missing?
(ui.r)
shinyUI(fluidPage(
# Application title
titlePanel("US Violent Crime rate per 100,000"),
# Sidebar with a Panel input
sidebarLayout(
sidebarPanel(
selectInput("crime", "Please Select Crime Type", choices=c("All", "Murder", "Rape", "Robbery", "Assault")),
),
# Show a plot of the generated distribution
mainPanel(
plotOutput("Plot")
)
)
))
Listening on http://127.0.0.1:4812
Warning: Error in tag: argument is missing, with no default
Stack trace (innermost first):
55: tag
54: tags$form
53: tag
52: tags$div
51: div
50: sidebarPanel
49: sidebarLayout
48: tag
47: tags$div
46: div
45: tagList
44: attachDependencies
43: bootstrapPage
42: fluidPage
41: shinyUI
1: runApp
Please format the code properly for readability. If you can post your data too it would be easier for reproducing the error. Take a look at my post, where I've uploaded the data on web, so that anyone running my script can get the data easily, if needed. Also, could you try making a reprex ?
Thanks. That got rid of the error message. Thanks. Now I just have to get my output to me nonzero and my label to be something other than "input$crime".
I'll work on it for a while longer. I appreciate the help. I've got some things to add and I'll eventually go back to the original, much larger, file that I got from the FBI site.