0
votes

I'm trying to make my shiny app public, so I try to use the Shinyapps.io. But I got this error which avoids me to complete the final step. How can I solve such a problem?

enter image description here

1

1 Answers

0
votes

Error is quite informative, the server doesn't exist. This usually happens when brackets haven't been closed properly. Make sure your app.R follows this structure:

library(shiny)

ui <- fluidPage(
  # ui code goes here
)

server <- function(input, output, session) {
  # server code goes here
}

shinyApp(ui, server)

If you have ui.R, server.R make sure you also have either an app.R or global.R that sources both ui.R and server.R and be sure to put them all in the same location.