Error on attempt to deploy shiny app.

When i try to publish R app in shinyapps.io , it shows this error:

The application failed to start: exited unexpectedly with code 1

Error in value[[3L]](cond) : could not find function "readOGR" Calls: local ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous> Execution halted

Can someone help resolve this?

Actually, your application is deployed but it is not working. To help you out with this we need more information, can you show the code of your app and the complete logs?

Unfortunately I am not permitted to share the codes but I have pasted the log file content below:

2021-05-16T09:55:14.587407+00:00 shinyapps[4138305]: Execution halted
2021-05-16T09:55:24.624479+00:00 shinyapps[4138305]: Running on host: d409f77172e1
2021-05-16T09:55:24.632912+00:00 shinyapps[4138305]: shiny version: 1.6.0
2021-05-16T09:55:24.632894+00:00 shinyapps[4138305]: Server version: 1.8.6.1
2021-05-16T09:55:24.632993+00:00 shinyapps[4138305]: RJSONIO version: (none)
2021-05-16T09:55:24.632906+00:00 shinyapps[4138305]: LANG: en_GB.UTF-8
2021-05-16T09:55:24.632932+00:00 shinyapps[4138305]: rmarkdown version: 2.8
2021-05-16T09:55:24.835780+00:00 shinyapps[4138305]: Using jsonlite for JSON processing
2021-05-16T09:55:24.632906+00:00 shinyapps[4138305]: R version: 4.0.5
2021-05-16T09:55:24.632993+00:00 shinyapps[4138305]: jsonlite version: 1.7.2
2021-05-16T09:55:24.632923+00:00 shinyapps[4138305]: httpuv version: 1.6.1
2021-05-16T09:55:24.839596+00:00 shinyapps[4138305]:
2021-05-16T09:55:24.632981+00:00 shinyapps[4138305]: knitr version: 1.33
2021-05-16T09:55:24.839598+00:00 shinyapps[4138305]: Starting R with process ID: '42'
2021-05-16T09:55:24.633034+00:00 shinyapps[4138305]: htmltools version: 0.5.1.1
2021-05-16T09:55:24.633180+00:00 shinyapps[4138305]: Using pandoc: /opt/connect/ext/pandoc/2.11
2021-05-16T09:55:25.788603+00:00 shinyapps[4138305]: Error in value[3L] : could not find function "readOGR"
2021-05-16T09:55:25.788605+00:00 shinyapps[4138305]: Calls: local ... tryCatch -> tryCatchList -> tryCatchOne ->
2021-05-16T09:55:25.788606+00:00 shinyapps[4138305]: Execution halted
Error in func(fname, ...) : app.R did not return a shiny.appobj object.

Does your app run locally?
Do you load library rgdal?

The logs suggest there is a problem with your code, a package is not being loaded either because you are not loading it explicitly or because something else is preventing it from loading.

Sadly, without seeing your actual code or a representative reproducible example of the issue, there is little we can do for you.