Shiny App unable to load in shinyapp.io

I have created a shiny app that was able to run locally, but unable to load at shinyapp.io.

Error Message: Unable to connect to worker after 60.00 seconds; startup took too long.


library(shiny)
library(ggplot2)
library(readxl)
library(xts)
library(plotly)


data <- read_excel("N_Calendar_App.xlsx")
temp_data <- data
institutions <- unique(data$Tag)

ui <- fluidPage(
    titlePanel("MASA National Calendar"),
    sidebarLayout(
        
        sidebarPanel(
            checkboxGroupInput('institution','Institution',institutions,institutions),
            dateRangeInput("date","Date Range","2019-01-01","2019-12-31"),
            actionButton("update","Update"),
            #actionButton("add","Add"),
            width=3
        ),
        
        mainPanel(
            plotlyOutput('calendar'),
            width=9
        )
    )
)

server <- function(input,output){
    data=eventReactive(input$update,{
        temp_data[temp_data$Tag %in% input$institution & 
                      as.Date(temp_data$Date)>input$date[1]&
                      as.Date(temp_data$Date)<input$date[2],]
    })
    
    output$calendar <- renderPlotly({
        plot=ggplot(data(),aes(x=Date,y=Tag,colour=Category,text=paste(Date,",",Status)))+
            geom_point(,size=4)+
            labs(x="",y="",colour="")+
            theme_light()
        ggplotly(plot,tooltip='text')
    })
}
shinyApp(ui=ui,server=server)

Are you uploading this file "N_Calendar_App.xlsx" along with your shiny app? what the logs for your app say?

Thanks @andresrcs,

I just checked my log.

Not sure why, but turns out that the app that I published to the website was an older version where I used the 'googledrive' package to download a file from Gdrive. The app was stuck at the Google authentication stage.

I've manage to replace it with this newer version of the script.

If your question's been answered (even by you!), would you mind choosing a solution? It helps other people see which questions still need help, or find solutions if they have similar problems. Here’s how to do it:

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.