I am aware of the common mistakes discussion on this topic. I've tried various combinations of adding or deleting IDs, labels, and commas and I can't seem to figure out what is wrong with my code.
Right now my app doesn't do anything substantial, I'm just trying to get it set up. Right now, expected behavior is that it runs, allows the user to enter any text, hit a submit button, and returns "hello world!"
server.R code:
library(shiny)
shinyServer(
function(input, output) {
output$results <- renderText({
"hello world!"
})
}
)
ui.R code:
library(shiny)
shinyUI(fluidPage(
titlePanel("Title goes here."),
sidebarLayout(
sidebarPanel(
helpText("Enter a few words, then select 'submit'!"),
textInput("input"),
submitButton("submit", label = "submit"),
),
mainPanel(
textOutput("results")
)
)
))
Actual behavior returns this error on the browser:
ERROR: argument "label" is missing, with no default
And this error in the R console:
> shiny::runApp()
Listening on http://127.0.0.1:4635 Error in label %AND% tags$label(label, `for` = inputId) : argument "label" is missing, with no default Error in label %AND% tags$label(label, `for` = inputId) : argument "label" is missing, with no default
Any general suggestions for debugging shiny apps will be greatly appreciated!