I was trying to deploy an R Shiny app that works perfectly when I run it locally. But when I deploy the app, it shows an error message in some of the outputs: " An error has occurred
The application failed to start. Contact the author for more information.".
I'm not particularly clear about what is going wrong (since the app works on my R session). Could you please suggest to me things I should try to get the app work on the server too?
Here are the logs of the shinyapps.
2021-12-20T18:52:18.687892+00:00 shinyapps[5342245]: httpuv version: 1.6.3
2021-12-20T18:52:18.687954+00:00 shinyapps[5342245]: RJSONIO version: (none)
2021-12-20T18:52:18.687962+00:00 shinyapps[5342245]: htmltools version: 0.5.2
2021-12-20T18:52:18.687921+00:00 shinyapps[5342245]: knitr version: 1.36
2021-12-20T18:52:18.695044+00:00 shinyapps[5342245]: Using jsonlite for JSON processing
2021-12-20T18:52:18.687925+00:00 shinyapps[5342245]: jsonlite version: 1.7.2
2021-12-20T18:52:18.688224+00:00 shinyapps[5342245]: Using pandoc: /opt/connect/ext/pandoc/2.11
2021-12-20T18:52:18.698739+00:00 shinyapps[5342245]:
2021-12-20T18:52:18.698740+00:00 shinyapps[5342245]: Starting R with process ID: '43'
2021-12-20T18:52:18.699190+00:00 shinyapps[5342245]: Shiny application starting ...
2021-12-20T18:52:19.105782+00:00 shinyapps[5342245]:
2021-12-20T18:52:19.105785+00:00 shinyapps[5342245]: Attaching package: ‘dplyr’
2021-12-20T18:52:19.105786+00:00 shinyapps[5342245]:
2021-12-20T18:52:19.106520+00:00 shinyapps[5342245]: The following objects are masked from ‘package:stats’:
2021-12-20T18:52:19.106521+00:00 shinyapps[5342245]:
2021-12-20T18:52:19.106521+00:00 shinyapps[5342245]: filter, lag
2021-12-20T18:52:19.106521+00:00 shinyapps[5342245]:
2021-12-20T18:52:19.106810+00:00 shinyapps[5342245]:
2021-12-20T18:52:19.106811+00:00 shinyapps[5342245]: intersect, setdiff, setequal, union
2021-12-20T18:52:19.106810+00:00 shinyapps[5342245]: The following objects are masked from ‘package:base’:
2021-12-20T18:52:19.106811+00:00 shinyapps[5342245]:
2021-12-20T18:52:19.361091+00:00 shinyapps[5342245]:
2021-12-20T18:52:19.361092+00:00 shinyapps[5342245]: Attaching package: ‘plotly’
2021-12-20T18:52:19.361367+00:00 shinyapps[5342245]: The following object is masked from ‘package:ggplot2’:
2021-12-20T18:52:19.361367+00:00 shinyapps[5342245]:
2021-12-20T18:52:19.361093+00:00 shinyapps[5342245]:
2021-12-20T18:52:19.361368+00:00 shinyapps[5342245]:
2021-12-20T18:52:19.361368+00:00 shinyapps[5342245]: last_plot
2021-12-20T18:52:19.361592+00:00 shinyapps[5342245]: The following object is masked from ‘package:stats’:
2021-12-20T18:52:19.361593+00:00 shinyapps[5342245]:
2021-12-20T18:52:19.361593+00:00 shinyapps[5342245]: filter
2021-12-20T18:52:19.361594+00:00 shinyapps[5342245]:
2021-12-20T18:52:19.361812+00:00 shinyapps[5342245]: The following object is masked from ‘package:graphics’:
2021-12-20T18:52:19.361813+00:00 shinyapps[5342245]:
2021-12-20T18:52:19.361813+00:00 shinyapps[5342245]: layout
2021-12-20T18:52:19.380698+00:00 shinyapps[5342245]:
2021-12-20T18:52:19.380700+00:00 shinyapps[5342245]:
2021-12-20T18:52:19.361813+00:00 shinyapps[5342245]:
2021-12-20T18:52:19.380699+00:00 shinyapps[5342245]: Attaching package: ‘shinyjs’
2021-12-20T18:52:19.380985+00:00 shinyapps[5342245]: runExample
2021-12-20T18:52:19.380985+00:00 shinyapps[5342245]:
2021-12-20T18:52:19.380983+00:00 shinyapps[5342245]: The following object is masked from ‘package:shiny’:
2021-12-20T18:52:19.380984+00:00 shinyapps[5342245]:
2021-12-20T18:52:19.381218+00:00 shinyapps[5342245]: removeClass, show
2021-12-20T18:52:19.381218+00:00 shinyapps[5342245]:
2021-12-20T18:52:19.381217+00:00 shinyapps[5342245]: The following objects are masked from ‘package:methods’:
2021-12-20T18:52:19.381218+00:00 shinyapps[5342245]:
2021-12-20T18:52:20.203243+00:00 shinyapps[5342245]: Error in value[[3L]](cond) : object 'Annual_product_CO2_2018' not found
2021-12-20T18:52:20.203244+00:00 shinyapps[5342245]: Calls: local ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous>
2021-12-20T18:52:20.203260+00:00 shinyapps[5342245]: Execution halted
2021-12-20T18:52:20.203291+00:00 shinyapps[5342245]: Shiny application exiting ...