Shiny App Deploy Error

I have tried to upload my Shiny App, but it shows error when I open the apps.

An error has occurred

The application failed to start (exited with code 1).

Error in value[[3L]](cond) : there is no package called ‘dplyr’ Calls: local ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous> 停止執行

Here are also the log from shinyapps.io.

2020-09-15T16:55:59.496570+00:00 shinyapps[2813284]: R version: 4.0.2
2020-09-15T16:55:59.496579+00:00 shinyapps[2813284]: shiny version: 1.5.0
2020-09-15T16:55:59.496603+00:00 shinyapps[2813284]: httpuv version: 1.5.4
2020-09-15T16:55:59.496623+00:00 shinyapps[2813284]: knitr version: (none)
2020-09-15T16:55:59.496690+00:00 shinyapps[2813284]: jsonlite version: 1.7.1
2020-09-15T16:55:59.496610+00:00 shinyapps[2813284]: rmarkdown version: (none)
2020-09-15T16:55:59.496702+00:00 shinyapps[2813284]: RJSONIO version: (none)
2020-09-15T16:55:59.645187+00:00 shinyapps[2813284]: Using jsonlite for JSON processing
2020-09-15T16:55:59.496787+00:00 shinyapps[2813284]: Using pandoc: /opt/connect/ext/pandoc2
2020-09-15T16:55:59.496702+00:00 shinyapps[2813284]: htmltools version: 0.5.0
2020-09-15T16:55:59.648016+00:00 shinyapps[2813284]:
2020-09-15T16:55:59.648016+00:00 shinyapps[2813284]: Starting R with process ID: '40'
2020-09-15T16:55:59.676976+00:00 shinyapps[2813284]: Error in value[3L] : there is no package called ‘dplyr’
2020-09-15T16:55:59.676977+00:00 shinyapps[2813284]: Calls: local ... tryCatch -> tryCatchList -> tryCatchOne ->
2020-09-15T16:55:59.676977+00:00 shinyapps[2813284]: 停止執行

I have read some other people solution, like changing the absolute path to relative, changing "library" to "require", and installing some other extra packages, but none of them work.

These are the first few lines of my code.

library(shiny)
library(dplyr)
library(colourpicker)
library(tableHTML)
load("color_table.Rdata")

What should I do to solve this error?

Does your app run locally ?

1 Like

Yes. It has no problem when I run locally, but I would like to share it with my friends.

I have found that it was an encoding issue. After setting my default encoding to UTF-8, it works now. Thank you all.

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

If you have a query related to it or one of the replies, start a new topic and refer back with a link.