ERROR: Unable to open connection in R Shiny

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")
                                  ),
                                  #### more UI code ####
    )) 
))

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?

+4
1

GBR24, , :

  • , ui.R server.r, , css , \user\Me\MyR\Project1 \... ..

    Path layout example:
    directory with ui.r file which will be 
    --css subdirectory
    --data
    --www
    

    , , , :

    myfile <- file.path("data", "data.csv") 
    dat <- read.csv(myfile, header=T)
    
  • . . RStudio " , ".

    , , Shiny serverhead.R not serverhead.R. . , .R .

    github Windows:. Github, , CaseNotLowered.R

    Gitshell :

    git mv -f OldName newname
    

    Github Support .

  • RStudio, . , :

    rsconnect::showLogs(account = "myshinyioaccount", appName = "myapp")
    

    EDIT shinyapps::showLogs ( conrad-mac)

    , :

    ... 2016-07-12T13: 13: 26.061123 + 00: 00 shinyapps [555]: ( , "r", = ):

    2016-07-12T13: 13: 26.060971 + 00: 00 shinyapps [555]: 2: eval.parent

    2016-07-12T13: 13: 26.061126 + 00: 00 shinyapps [555]:

, !

+6

All Articles