Shinyapps.io Returning an Error After Deployment

Hello, I receive the following error message:

An error has occurred

The application failed to start.

exit status 1

Here are the logs:

2025-04-15T03:25:15.845620+00:00 shinyapps[14513734]: Warning in file(filename, "r", encoding = encoding) :
2025-04-15T03:25:15.849839+00:00 shinyapps[14513734]: cannot open file 'bin/R/confirmed_cases/dashboard/publishable_dashboard/setup.R': No such file or directory
2025-04-15T03:25:15.854413+00:00 shinyapps[14513734]: Shiny application exiting ...
2025-04-15T03:25:15.858777+00:00 shinyapps[14513734]: Error in file(filename, "r", encoding = encoding) :
2025-04-15T03:25:15.864117+00:00 shinyapps[14513734]: cannot open the connection
2025-04-15T03:25:15.872923+00:00 shinyapps[14513734]: Calls: local ... tryCatch -> tryCatchList -> tryCatchOne ->
2025-04-15T03:25:15.877741+00:00 shinyapps[14513734]: Execution halted

Issue is that, the path does exist when I run it on R. I am confused.

1 Like

When you install a Shiny app on shinyapps.io, bear in mind that their file system is different from yours. If you need to include auxiliary files besides the app itself (and any libraries it uses), you should (a) put them in the app directory or a subdirectory thereof (possibly not necessary, but safer), (b) ensure that they are included among the files you upload during the installation process and (c) reference them in the app using relative rather than absolute file paths.