I went through all the steps found here and even received the following message without errors:
Application successfully deployed to https://user-name.shinyapps.io/projectFolder/
However, when I try to start the program, I get a message ERROR: cannot open the connection. Here is the contents of the folder ( projectFolder) I directed to R Studio:
ui.R # contains only ui code
server.R # contains only server code
script.R # my full script, which contains global, ui, and server code
gomap.js # used for mapping app
styles.css # used for Shiny App
data.csv # my global data to be hosted on shinyapps.io
Here is an example of various scripts:
ui.R
ui <- shinyUI(navbarPage("Tab title", id="nav",
tabPanel("Interactive map",
div(class="outer",
tags$head(
includeCSS("/Users/user/Documents/R/projects/styles.css"),
includeScript("/Users/user/Documents/R/projects/gomap.js")
),
))
))
Perhaps the problem is with the above file paths? Do I need the setwdtop of the files ui.Rand server.R? Or is it because in script.Ryou can find the full code for ui.Rand server.R(maybe this is redundant, and I need to create a file global.Ronly with loading and processing data?
General question: how do you split your files for upload to shinyapps.io?