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

I am trying to publish my first shiny app, however I get constantly the same error:

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

I don't know how to fix it. What I have read in different post and blogs didn't help me. I am totally stuck. I'm only loading to libraries:

library(shiny)
library(tidyverse)

Please, any help?

Thanks for your answer.

I have both installed in their latest version, so this doesn't seem to be the problem. I have read in other posts things related with libpath, any idea?

Double check: can you load library(tidyverse) on the command line? If so, then yes, check your .LibPaths().

Cab you post the complete output you get when you try to publish your app to shinyapps.io? Also, can you confirm that the app runs locally without any error or warning messages?

The .LibPaths() seems to be correct. I have read that shiny need relative paths, but I'm not sure if that is my case, as I do not load any object or data from other folder

The app runs perfect locally. This is the ouput in the 'Deploy' window:

Preparing to deploy application...DONE
Uploading bundle for application: 4021361...DONE
Deploying bundle: 4513786 for application: 4021361 ...
Waiting for task: 918080404
  building: Parsing manifest
  building: Installing packages
  building: Installing files
  building: Pushing image: 5185157
  deploying: Starting instances
  rollforward: Activating new instances
  terminating: Stopping old instances
Application successfully deployed to https://romn-adn.shinyapps.io/Madrid_Dhondt/
Deployment completed: https://romn-adn.shinyapps.io/Madrid_Dhondt/
Warning message:
In fileDependencies.R(file) :
  Failed to parse C:/***/***�***�*/AppData/Local/Temp/Rtmp2zCSTl/file330450037fea/app.R ; dependencies in this file will not be discovered.

I hide with ** the first part.

OK the app is deployed but it seems package dependencies are not being included.

Is this a file you are sourcing? if so, can you show the content and how are you sourcing it into your app.R file? Also, pleas post the logs of your app.

The app locally works well . Only two images are loading from other folder, but both are in a folder inside app's one (I followed Rstudio tutorial).


¿Te importa si cambio al español? He visto que también es tu primera lengua.

La app localmente funciona bien y no da errores. Lo único que cargo que está en otra carpeta son dos imágenes, pero ambas están en una subcarpeta dentro de la carpeta de la App. Las dos las cargo así, tal y cómo explican en el tutorial de Rstudio:

 img(src = "imagen.png", heigh = 50, width = 300)

¿Qué es el logs de la app?

¡Y muchas gracias por intentar ayudar!

Particularmente no tengo problema con que hablemos español pero ten presente que eso reduce considerablemente tus probabilidades de obtener ayuda ya que el inglés es el idioma preferido aquí y muy pocas personas hablan español en este foro.

Puedes revisar los registros de la aplicación desde la consola de administración de shinyapps.io

Aparte de eso, ¿puedes mostrar el código de tu aplicación?

You are right. The code of my app, although it is not completely finished is in my github .

And here is the log:

2021-04-23T19:37:49.109909+00:00 shinyapps[4021361]: Server version: 1.8.6.1
2021-04-23T19:37:49.109919+00:00 shinyapps[4021361]: LANG: es_ES.UTF-8
2021-04-23T19:37:49.109955+00:00 shinyapps[4021361]: R version: 4.0.3
2021-04-23T19:37:49.109977+00:00 shinyapps[4021361]: shiny version: 1.5.0
2021-04-23T19:37:49.104999+00:00 shinyapps[4021361]: Running on host: 6745bc45f73e
2021-04-23T19:37:49.110000+00:00 shinyapps[4021361]: knitr version: (none)
2021-04-23T19:37:49.109993+00:00 shinyapps[4021361]: rmarkdown version: (none)
2021-04-23T19:37:49.109987+00:00 shinyapps[4021361]: httpuv version: 1.5.4
2021-04-23T19:37:49.110015+00:00 shinyapps[4021361]: jsonlite version: 1.7.2
2021-04-23T19:37:49.110047+00:00 shinyapps[4021361]: htmltools version: 0.5.1.1
2021-04-23T19:37:49.110022+00:00 shinyapps[4021361]: RJSONIO version: (none)
2021-04-23T19:37:49.110194+00:00 shinyapps[4021361]: Using pandoc: /opt/connect/ext/pandoc/2.11
2021-04-23T19:37:49.274209+00:00 shinyapps[4021361]: Using jsonlite for JSON processing
2021-04-23T19:37:49.277475+00:00 shinyapps[4021361]: 
2021-04-23T19:37:49.277475+00:00 shinyapps[4021361]: Starting R with process ID: '26'
2021-04-23T19:37:49.325188+00:00 shinyapps[4021361]: Error in value[[3L]](cond) : there is no package called ‘tidyverse’
2021-04-23T19:37:49.325189+00:00 shinyapps[4021361]: Calls: local ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous>
2021-04-23T19:37:49.325190+00:00 shinyapps[4021361]: Ejecución interrumpida
2021-04-23T19:37:53.849052+00:00 shinyapps[4021361]: LANG: es_ES.UTF-8
2021-04-23T19:37:53.849016+00:00 shinyapps[4021361]: Server version: 1.8.6.1
2021-04-23T19:37:53.849098+00:00 shinyapps[4021361]: rmarkdown version: (none)
2021-04-23T19:37:53.849061+00:00 shinyapps[4021361]: R version: 4.0.3
2021-04-23T19:37:53.849069+00:00 shinyapps[4021361]: httpuv version: 1.5.4
2021-04-23T19:37:53.849164+00:00 shinyapps[4021361]: jsonlite version: 1.7.2
2021-04-23T19:37:53.849269+00:00 shinyapps[4021361]: Using pandoc: /opt/connect/ext/pandoc/2.11
2021-04-23T19:37:53.843775+00:00 shinyapps[4021361]: Running on host: 6745bc45f73e
2021-04-23T19:37:53.849062+00:00 shinyapps[4021361]: shiny version: 1.5.0
2021-04-23T19:37:53.849163+00:00 shinyapps[4021361]: knitr version: (none)
2021-04-23T19:37:53.849175+00:00 shinyapps[4021361]: RJSONIO version: (none)
2021-04-23T19:37:54.021733+00:00 shinyapps[4021361]: Starting R with process ID: '42'
2021-04-23T19:37:54.057318+00:00 shinyapps[4021361]: Error in value[[3L]](cond) : there is no package called ‘tidyverse’
2021-04-23T19:37:54.017908+00:00 shinyapps[4021361]: Using jsonlite for JSON processing
2021-04-23T19:37:54.021731+00:00 shinyapps[4021361]: 
2021-04-23T19:37:53.849176+00:00 shinyapps[4021361]: htmltools version: 0.5.1.1
2021-04-23T19:37:54.057318+00:00 shinyapps[4021361]: Calls: local ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous>
2021-04-23T19:37:54.057319+00:00 shinyapps[4021361]: Ejecución interrumpida
2021-04-23T19:39:13.952030+00:00 shinyapps[4021361]: Running on host: 147ec67a9071
2021-04-23T19:39:13.956462+00:00 shinyapps[4021361]: Server version: 1.8.6.1
2021-04-23T19:39:13.956471+00:00 shinyapps[4021361]: LANG: es_ES.UTF-8
2021-04-23T19:39:13.956484+00:00 shinyapps[4021361]: R version: 4.0.3
2021-04-23T19:39:13.956534+00:00 shinyapps[4021361]: rmarkdown version: (none)
2021-04-23T19:39:14.106955+00:00 shinyapps[4021361]: Using jsonlite for JSON processing
2021-04-23T19:39:13.956562+00:00 shinyapps[4021361]: htmltools version: 0.5.1.1
2021-04-23T19:39:13.956500+00:00 shinyapps[4021361]: httpuv version: 1.5.4
2021-04-23T19:39:14.145103+00:00 shinyapps[4021361]: Ejecución interrumpida
2021-04-23T19:39:13.956543+00:00 shinyapps[4021361]: knitr version: (none)
2021-04-23T19:39:14.109948+00:00 shinyapps[4021361]: Starting R with process ID: '24'
2021-04-23T19:39:13.956492+00:00 shinyapps[4021361]: shiny version: 1.5.0
2021-04-23T19:39:14.109940+00:00 shinyapps[4021361]: 
2021-04-23T19:39:13.956543+00:00 shinyapps[4021361]: jsonlite version: 1.7.2
2021-04-23T19:39:14.145102+00:00 shinyapps[4021361]: Calls: local ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous>
2021-04-23T19:39:13.956558+00:00 shinyapps[4021361]: RJSONIO version: (none)
2021-04-23T19:39:14.145101+00:00 shinyapps[4021361]: Error in value[[3L]](cond) : there is no package called ‘tidyverse’
2021-04-23T19:39:13.956687+00:00 shinyapps[4021361]: Using pandoc: /opt/connect/ext/pandoc/2.11
2021-04-23T19:39:29.542301+00:00 shinyapps[4021361]: Running on host: 147ec67a9071
2021-04-23T19:39:29.547013+00:00 shinyapps[4021361]: Server version: 1.8.6.1
2021-04-23T19:39:29.547046+00:00 shinyapps[4021361]: LANG: es_ES.UTF-8
2021-04-23T19:39:29.547080+00:00 shinyapps[4021361]: R version: 4.0.3
2021-04-23T19:39:29.547088+00:00 shinyapps[4021361]: shiny version: 1.5.0
2021-04-23T19:39:29.547097+00:00 shinyapps[4021361]: httpuv version: 1.5.4
2021-04-23T19:39:29.547144+00:00 shinyapps[4021361]: RJSONIO version: (none)
2021-04-23T19:39:29.547114+00:00 shinyapps[4021361]: rmarkdown version: (none)
2021-04-23T19:39:29.547287+00:00 shinyapps[4021361]: Using pandoc: /opt/connect/ext/pandoc/2.11
2021-04-23T19:39:29.547121+00:00 shinyapps[4021361]: knitr version: (none)
2021-04-23T19:39:29.547195+00:00 shinyapps[4021361]: htmltools version: 0.5.1.1
2021-04-23T19:39:29.547137+00:00 shinyapps[4021361]: jsonlite version: 1.7.2
2021-04-23T19:39:29.700910+00:00 shinyapps[4021361]: Using jsonlite for JSON processing
2021-04-23T19:39:29.704322+00:00 shinyapps[4021361]: 
2021-04-23T19:39:29.736892+00:00 shinyapps[4021361]: Calls: local ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous>
2021-04-23T19:39:29.736891+00:00 shinyapps[4021361]: Error in value[[3L]](cond) : there is no package called ‘tidyverse’
2021-04-23T19:39:29.704323+00:00 shinyapps[4021361]: Starting R with process ID: '40'
2021-04-23T19:39:29.736893+00:00 shinyapps[4021361]: Ejecución interrumpida
2021-04-23T19:55:09.229416+00:00 shinyapps[4021361]: Running on host: 9dfcebcc9e73
2021-04-23T19:55:09.234906+00:00 shinyapps[4021361]: Server version: 1.8.6.1
2021-04-23T19:55:09.234922+00:00 shinyapps[4021361]: LANG: es_ES.UTF-8
2021-04-23T19:55:09.234923+00:00 shinyapps[4021361]: R version: 4.0.3
2021-04-23T19:55:09.234940+00:00 shinyapps[4021361]: shiny version: 1.5.0
2021-04-23T19:55:09.234950+00:00 shinyapps[4021361]: httpuv version: 1.5.4
2021-04-23T19:55:09.235001+00:00 shinyapps[4021361]: rmarkdown version: (none)
2021-04-23T19:55:09.235054+00:00 shinyapps[4021361]: htmltools version: 0.5.1.1
2021-04-23T19:55:09.235011+00:00 shinyapps[4021361]: knitr version: (none)
2021-04-23T19:55:09.235246+00:00 shinyapps[4021361]: Using pandoc: /opt/connect/ext/pandoc/2.11
2021-04-23T19:55:09.397120+00:00 shinyapps[4021361]: 
2021-04-23T19:55:09.235011+00:00 shinyapps[4021361]: jsonlite version: 1.7.2
2021-04-23T19:55:09.235027+00:00 shinyapps[4021361]: RJSONIO version: (none)
2021-04-23T19:55:09.393973+00:00 shinyapps[4021361]: Using jsonlite for JSON processing
2021-04-23T19:55:09.430470+00:00 shinyapps[4021361]: Calls: local ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous>
2021-04-23T19:55:09.397122+00:00 shinyapps[4021361]: Starting R with process ID: '25'
2021-04-23T19:55:09.430468+00:00 shinyapps[4021361]: Error in value[[3L]](cond) : there is no package called ‘tidyverse’
2021-04-23T19:55:09.430471+00:00 shinyapps[4021361]: Ejecución interrumpida
2021-04-23T19:55:18.816088+00:00 shinyapps[4021361]: Server version: 1.8.6.1
2021-04-23T19:55:18.811274+00:00 shinyapps[4021361]: Running on host: 9dfcebcc9e73
2021-04-23T19:55:18.816115+00:00 shinyapps[4021361]: shiny version: 1.5.0
2021-04-23T19:55:18.816113+00:00 shinyapps[4021361]: LANG: es_ES.UTF-8
2021-04-23T19:55:18.816115+00:00 shinyapps[4021361]: httpuv version: 1.5.4
2021-04-23T19:55:18.816143+00:00 shinyapps[4021361]: rmarkdown version: (none)
2021-04-23T19:55:18.974278+00:00 shinyapps[4021361]: 
2021-04-23T19:55:18.971129+00:00 shinyapps[4021361]: Using jsonlite for JSON processing
2021-04-23T19:55:18.816144+00:00 shinyapps[4021361]: knitr version: (none)
2021-04-23T19:55:18.816144+00:00 shinyapps[4021361]: jsonlite version: 1.7.2
2021-04-23T19:55:18.974279+00:00 shinyapps[4021361]: Starting R with process ID: '41'
2021-04-23T19:55:18.816153+00:00 shinyapps[4021361]: RJSONIO version: (none)
2021-04-23T19:55:18.816316+00:00 shinyapps[4021361]: Using pandoc: /opt/connect/ext/pandoc/2.11
2021-04-23T19:55:19.006710+00:00 shinyapps[4021361]: Error in value[[3L]](cond) : there is no package called ‘tidyverse’
2021-04-23T19:55:18.816154+00:00 shinyapps[4021361]: htmltools version: 0.5.1.1
2021-04-23T19:55:19.006711+00:00 shinyapps[4021361]: Ejecución interrumpida
2021-04-23T19:55:19.006711+00:00 shinyapps[4021361]: Calls: local ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous>
2021-04-23T19:55:18.816114+00:00 shinyapps[4021361]: R version: 4.0.3
2021-04-24T10:19:50.733720+00:00 shinyapps[4021361]: Running on host: 784cb4560a94
2021-04-24T10:19:50.739748+00:00 shinyapps[4021361]: Server version: 1.8.6.1
2021-04-24T10:19:50.739783+00:00 shinyapps[4021361]: LANG: es_ES.UTF-8
2021-04-24T10:19:50.739784+00:00 shinyapps[4021361]: R version: 4.0.3
2021-04-24T10:19:50.739815+00:00 shinyapps[4021361]: shiny version: 1.6.0
2021-04-24T10:19:50.739823+00:00 shinyapps[4021361]: httpuv version: 1.5.4
2021-04-24T10:19:50.739824+00:00 shinyapps[4021361]: rmarkdown version: (none)
2021-04-24T10:19:50.739848+00:00 shinyapps[4021361]: knitr version: (none)
2021-04-24T10:19:50.739881+00:00 shinyapps[4021361]: jsonlite version: 1.7.2
2021-04-24T10:19:50.739891+00:00 shinyapps[4021361]: RJSONIO version: (none)
2021-04-24T10:19:50.739918+00:00 shinyapps[4021361]: htmltools version: 0.5.1.1
2021-04-24T10:19:50.740090+00:00 shinyapps[4021361]: Using pandoc: /opt/connect/ext/pandoc/2.11
2021-04-24T10:19:50.949871+00:00 shinyapps[4021361]: Using jsonlite for JSON processing
2021-04-24T10:19:50.953400+00:00 shinyapps[4021361]: 
2021-04-24T10:19:50.953403+00:00 shinyapps[4021361]: Starting R with process ID: '24'
2021-04-24T10:19:50.987423+00:00 shinyapps[4021361]: Error in value[[3L]](cond) : there is no package called ‘tidyverse’
2021-04-24T10:19:50.987462+00:00 shinyapps[4021361]: Ejecución interrumpida
2021-04-24T10:19:50.987424+00:00 shinyapps[4021361]: Calls: local ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous>
2021-04-24T10:19:59.413524+00:00 shinyapps[4021361]: LANG: es_ES.UTF-8
2021-04-24T10:19:59.407368+00:00 shinyapps[4021361]: Running on host: 784cb4560a94
2021-04-24T10:19:59.413522+00:00 shinyapps[4021361]: Server version: 1.8.6.1
2021-04-24T10:19:59.413538+00:00 shinyapps[4021361]: R version: 4.0.3
2021-04-24T10:19:59.413549+00:00 shinyapps[4021361]: httpuv version: 1.5.4
2021-04-24T10:19:59.413577+00:00 shinyapps[4021361]: rmarkdown version: (none)
2021-04-24T10:19:59.413539+00:00 shinyapps[4021361]: shiny version: 1.6.0
2021-04-24T10:19:59.413586+00:00 shinyapps[4021361]: knitr version: (none)
2021-04-24T10:19:59.413665+00:00 shinyapps[4021361]: RJSONIO version: (none)
2021-04-24T10:19:59.647571+00:00 shinyapps[4021361]: 
2021-04-24T10:19:59.646037+00:00 shinyapps[4021361]: Using jsonlite for JSON processing
2021-04-24T10:19:59.647573+00:00 shinyapps[4021361]: Starting R with process ID: '40'
2021-04-24T10:19:59.413665+00:00 shinyapps[4021361]: htmltools version: 0.5.1.1
2021-04-24T10:19:59.413791+00:00 shinyapps[4021361]: Using pandoc: /opt/connect/ext/pandoc/2.11
2021-04-24T10:19:59.413644+00:00 shinyapps[4021361]: jsonlite version: 1.7.2
2021-04-24T10:19:59.692779+00:00 shinyapps[4021361]: Error in value[[3L]](cond) : there is no package called ‘tidyverse’
2021-04-24T10:19:59.692780+00:00 shinyapps[4021361]: Calls: local ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous>
2021-04-24T10:19:59.692781+00:00 shinyapps[4021361]: Ejecución interrumpida
2021-04-24T13:41:00.375744+00:00 shinyapps[4021361]: Running on host: 0bc2035ddda5
2021-04-24T13:41:00.381375+00:00 shinyapps[4021361]: Server version: 1.8.6.1
2021-04-24T13:41:00.381393+00:00 shinyapps[4021361]: R version: 4.0.3
2021-04-24T13:41:00.381387+00:00 shinyapps[4021361]: LANG: es_ES.UTF-8
2021-04-24T13:41:00.381406+00:00 shinyapps[4021361]: shiny version: 1.6.0
2021-04-24T13:41:00.381437+00:00 shinyapps[4021361]: rmarkdown version: (none)
2021-04-24T13:41:00.381485+00:00 shinyapps[4021361]: jsonlite version: 1.7.2
2021-04-24T13:41:00.381416+00:00 shinyapps[4021361]: httpuv version: 1.5.4
2021-04-24T13:41:00.381448+00:00 shinyapps[4021361]: knitr version: (none)
2021-04-24T13:41:00.381503+00:00 shinyapps[4021361]: RJSONIO version: (none)
2021-04-24T13:41:00.381503+00:00 shinyapps[4021361]: htmltools version: 0.5.1.1
2021-04-24T13:41:00.381639+00:00 shinyapps[4021361]: Using pandoc: /opt/connect/ext/pandoc/2.11
2021-04-24T13:41:00.574245+00:00 shinyapps[4021361]: Using jsonlite for JSON processing
2021-04-24T13:41:00.577727+00:00 shinyapps[4021361]: 
2021-04-24T13:41:00.577728+00:00 shinyapps[4021361]: Starting R with process ID: '24'
2021-04-24T13:41:00.600769+00:00 shinyapps[4021361]: Error in parse(file, keep.source = FALSE, srcfile = src, encoding = enc) : 
2021-04-24T13:41:00.600769+00:00 shinyapps[4021361]:   /srv/connect/apps/Madrid_Dhondt/app.R:498:0: unexpected end of line
2021-04-24T13:41:00.600770+00:00 shinyapps[4021361]: 496: 
2021-04-24T13:41:00.600771+00:00 shinyapps[4021361]: 497: rsconnect::
2021-04-24T13:41:00.600771+00:00 shinyapps[4021361]:     ^
2021-04-24T13:41:00.669676+00:00 shinyapps[4021361]: Possible extra comma at:
2021-04-24T13:41:00.669677+00:00 shinyapps[4021361]: 276:                  ),
2021-04-24T13:41:00.669678+00:00 shinyapps[4021361]:                        ^
2021-04-24T13:41:00.676925+00:00 shinyapps[4021361]:   Error sourcing /srv/connect/apps/Madrid_Dhondt/app.R
2021-04-24T13:41:00.676923+00:00 shinyapps[4021361]: Error in value[[3L]](cond) : 
2021-04-24T13:41:00.676926+00:00 shinyapps[4021361]: Calls: local ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous>
2021-04-24T13:41:00.676952+00:00 shinyapps[4021361]: Ejecución interrumpida
2021-04-24T13:41:12.667386+00:00 shinyapps[4021361]: Server version: 1.8.6.1
2021-04-24T13:41:12.667399+00:00 shinyapps[4021361]: LANG: es_ES.UTF-8
2021-04-24T13:41:12.667400+00:00 shinyapps[4021361]: R version: 4.0.3
2021-04-24T13:41:12.667410+00:00 shinyapps[4021361]: shiny version: 1.6.0
2021-04-24T13:41:12.667417+00:00 shinyapps[4021361]: httpuv version: 1.5.4
2021-04-24T13:41:12.661786+00:00 shinyapps[4021361]: Running on host: 0bc2035ddda5
2021-04-24T13:41:12.667485+00:00 shinyapps[4021361]: htmltools version: 0.5.1.1
2021-04-24T13:41:12.667631+00:00 shinyapps[4021361]: Using pandoc: /opt/connect/ext/pandoc/2.11
2021-04-24T13:41:12.860454+00:00 shinyapps[4021361]: Using jsonlite for JSON processing
2021-04-24T13:41:12.667440+00:00 shinyapps[4021361]: rmarkdown version: (none)
2021-04-24T13:41:12.667448+00:00 shinyapps[4021361]: knitr version: (none)
2021-04-24T13:41:12.886640+00:00 shinyapps[4021361]:   /srv/connect/apps/Madrid_Dhondt/app.R:498:0: unexpected end of line
2021-04-24T13:41:12.667480+00:00 shinyapps[4021361]: RJSONIO version: (none)
2021-04-24T13:41:12.864049+00:00 shinyapps[4021361]: Starting R with process ID: '40'
2021-04-24T13:41:12.886641+00:00 shinyapps[4021361]: 497: rsconnect::
2021-04-24T13:41:12.886638+00:00 shinyapps[4021361]: Error in parse(file, keep.source = FALSE, srcfile = src, encoding = enc) : 
2021-04-24T13:41:12.886640+00:00 shinyapps[4021361]: 496: 
2021-04-24T13:41:12.667473+00:00 shinyapps[4021361]: jsonlite version: 1.7.2
2021-04-24T13:41:12.886641+00:00 shinyapps[4021361]:     ^
2021-04-24T13:41:12.864048+00:00 shinyapps[4021361]: 
2021-04-24T13:41:12.952314+00:00 shinyapps[4021361]: Possible extra comma at:
2021-04-24T13:41:12.952317+00:00 shinyapps[4021361]: 276:                  ),
2021-04-24T13:41:12.963939+00:00 shinyapps[4021361]: Error in value[[3L]](cond) : 
2021-04-24T13:41:12.952318+00:00 shinyapps[4021361]:                        ^
2021-04-24T13:41:12.963941+00:00 shinyapps[4021361]:   Error sourcing /srv/connect/apps/Madrid_Dhondt/app.R
2021-04-24T13:41:12.963942+00:00 shinyapps[4021361]: Calls: local ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous>
2021-04-24T13:41:12.963983+00:00 shinyapps[4021361]: Ejecución interrumpida
2021-04-24T13:41:24.439600+00:00 shinyapps[4021361]: Running on host: 0bc2035ddda5
2021-04-24T13:41:24.445117+00:00 shinyapps[4021361]: Server version: 1.8.6.1
2021-04-24T13:41:24.445128+00:00 shinyapps[4021361]: LANG: es_ES.UTF-8
2021-04-24T13:41:24.445134+00:00 shinyapps[4021361]: R version: 4.0.3
2021-04-24T13:41:24.445155+00:00 shinyapps[4021361]: shiny version: 1.6.0
2021-04-24T13:41:24.445162+00:00 shinyapps[4021361]: httpuv version: 1.5.4
2021-04-24T13:41:24.445223+00:00 shinyapps[4021361]: jsonlite version: 1.7.2
2021-04-24T13:41:24.445239+00:00 shinyapps[4021361]: RJSONIO version: (none)
2021-04-24T13:41:24.445190+00:00 shinyapps[4021361]: rmarkdown version: (none)
2021-04-24T13:41:24.445222+00:00 shinyapps[4021361]: knitr version: (none)
2021-04-24T13:41:24.445381+00:00 shinyapps[4021361]: Using pandoc: /opt/connect/ext/pandoc/2.11
2021-04-24T13:41:24.635303+00:00 shinyapps[4021361]: Using jsonlite for JSON processing
2021-04-24T13:41:24.445239+00:00 shinyapps[4021361]: htmltools version: 0.5.1.1
2021-04-24T13:41:24.638441+00:00 shinyapps[4021361]: 
2021-04-24T13:41:24.660651+00:00 shinyapps[4021361]: Error in parse(file, keep.source = FALSE, srcfile = src, encoding = enc) : 
2021-04-24T13:41:24.660652+00:00 shinyapps[4021361]: 496: 
2021-04-24T13:41:24.638442+00:00 shinyapps[4021361]: Starting R with process ID: '56'
2021-04-24T13:41:24.660652+00:00 shinyapps[4021361]:   /srv/connect/apps/Madrid_Dhondt/app.R:498:0: unexpected end of line
2021-04-24T13:41:24.660653+00:00 shinyapps[4021361]: 497: rsconnect::
2021-04-24T13:41:24.660653+00:00 shinyapps[4021361]:     ^
2021-04-24T13:41:24.725036+00:00 shinyapps[4021361]: Possible extra comma at:
2021-04-24T13:41:24.725037+00:00 shinyapps[4021361]: 276:                  ),
2021-04-24T13:41:24.725038+00:00 shinyapps[4021361]:                        ^
2021-04-24T13:41:24.732294+00:00 shinyapps[4021361]: Error in value[[3L]](cond) : 
2021-04-24T13:41:24.732300+00:00 shinyapps[4021361]: Calls: local ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous>
2021-04-24T13:41:24.732299+00:00 shinyapps[4021361]:   Error sourcing /srv/connect/apps/Madrid_Dhondt/app.R
2021-04-24T13:41:24.732330+00:00 shinyapps[4021361]: Ejecución interrumpida
2021-04-24T13:43:02.781816+00:00 shinyapps[4021361]: Running on host: fe6b90afabb0
2021-04-24T13:43:02.787296+00:00 shinyapps[4021361]: Server version: 1.8.6.1
2021-04-24T13:43:02.787308+00:00 shinyapps[4021361]: LANG: es_ES.UTF-8
2021-04-24T13:43:02.787309+00:00 shinyapps[4021361]: R version: 4.0.3
2021-04-24T13:43:02.787344+00:00 shinyapps[4021361]: rmarkdown version: (none)
2021-04-24T13:43:02.787444+00:00 shinyapps[4021361]: htmltools version: 0.5.1.1
2021-04-24T13:43:02.787323+00:00 shinyapps[4021361]: httpuv version: 1.5.4
2021-04-24T13:43:02.787373+00:00 shinyapps[4021361]: knitr version: (none)
2021-04-24T13:43:03.013404+00:00 shinyapps[4021361]: Ejecución interrumpida
2021-04-24T13:43:02.787315+00:00 shinyapps[4021361]: shiny version: 1.6.0
2021-04-24T13:43:02.982203+00:00 shinyapps[4021361]: Starting R with process ID: '25'
2021-04-24T13:43:03.013401+00:00 shinyapps[4021361]: Error in value[[3L]](cond) : there is no package called ‘tidyverse’
2021-04-24T13:43:02.787424+00:00 shinyapps[4021361]: RJSONIO version: (none)
2021-04-24T13:43:02.787388+00:00 shinyapps[4021361]: jsonlite version: 1.7.2
2021-04-24T13:43:02.787604+00:00 shinyapps[4021361]: Using pandoc: /opt/connect/ext/pandoc/2.11
2021-04-24T13:43:02.978983+00:00 shinyapps[4021361]: Using jsonlite for JSON processing
2021-04-24T13:43:02.982202+00:00 shinyapps[4021361]: 
2021-04-24T13:43:03.013403+00:00 shinyapps[4021361]: Calls: local ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous>
2021-04-24T13:43:11.764524+00:00 shinyapps[4021361]: Running on host: fe6b90afabb0
2021-04-24T13:43:11.769802+00:00 shinyapps[4021361]: Server version: 1.8.6.1
2021-04-24T13:43:11.769812+00:00 shinyapps[4021361]: R version: 4.0.3
2021-04-24T13:43:11.769812+00:00 shinyapps[4021361]: LANG: es_ES.UTF-8
2021-04-24T13:43:11.769834+00:00 shinyapps[4021361]: shiny version: 1.6.0
2021-04-24T13:43:11.769883+00:00 shinyapps[4021361]: rmarkdown version: (none)
2021-04-24T13:43:11.769844+00:00 shinyapps[4021361]: httpuv version: 1.5.4
2021-04-24T13:43:11.769884+00:00 shinyapps[4021361]: knitr version: (none)
2021-04-24T13:43:11.769901+00:00 shinyapps[4021361]: jsonlite version: 1.7.2
2021-04-24T13:43:11.770059+00:00 shinyapps[4021361]: Using pandoc: /opt/connect/ext/pandoc/2.11
2021-04-24T13:43:11.769911+00:00 shinyapps[4021361]: RJSONIO version: (none)
2021-04-24T13:43:11.769916+00:00 shinyapps[4021361]: htmltools version: 0.5.1.1
2021-04-24T13:43:11.959720+00:00 shinyapps[4021361]: Using jsonlite for JSON processing
2021-04-24T13:43:11.962943+00:00 shinyapps[4021361]: Starting R with process ID: '41'
2021-04-24T13:43:11.962942+00:00 shinyapps[4021361]: 
2021-04-24T13:43:11.993303+00:00 shinyapps[4021361]: Error in value[[3L]](cond) : there is no package called ‘tidyverse’
2021-04-24T13:43:11.993304+00:00 shinyapps[4021361]: Calls: local ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous>
2021-04-24T13:43:11.993317+00:00 shinyapps[4021361]: Ejecución interrumpida
2021-04-24T13:44:34.763301+00:00 shinyapps[4021361]: Running on host: fe6b90afabb0
2021-04-24T13:44:34.768561+00:00 shinyapps[4021361]: Server version: 1.8.6.1
2021-04-24T13:44:34.768605+00:00 shinyapps[4021361]: R version: 4.0.3
2021-04-24T13:44:34.768574+00:00 shinyapps[4021361]: LANG: es_ES.UTF-8
2021-04-24T13:44:34.768614+00:00 shinyapps[4021361]: shiny version: 1.6.0
2021-04-24T13:44:34.772066+00:00 shinyapps[4021361]: httpuv version: 1.5.4
2021-04-24T13:44:34.772066+00:00 shinyapps[4021361]: rmarkdown version: (none)
2021-04-24T13:44:34.772067+00:00 shinyapps[4021361]: knitr version: (none)
2021-04-24T13:44:34.772067+00:00 shinyapps[4021361]: jsonlite version: 1.7.2
2021-04-24T13:44:34.772067+00:00 shinyapps[4021361]: RJSONIO version: (none)
2021-04-24T13:44:34.772067+00:00 shinyapps[4021361]: htmltools version: 0.5.1.1
2021-04-24T13:44:34.961667+00:00 shinyapps[4021361]: Starting R with process ID: '81'
2021-04-24T13:44:34.772068+00:00 shinyapps[4021361]: Using pandoc: /opt/connect/ext/pandoc/2.11
2021-04-24T13:44:34.958443+00:00 shinyapps[4021361]: Using jsonlite for JSON processing
2021-04-24T13:44:34.961666+00:00 shinyapps[4021361]: 
2021-04-24T13:44:34.992036+00:00 shinyapps[4021361]: Error in value[[3L]](cond) : there is no package called ‘tidyverse’
2021-04-24T13:44:34.992036+00:00 shinyapps[4021361]: Calls: local ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous>
2021-04-24T13:44:34.992037+00:00 shinyapps[4021361]: Ejecución interrumpida
2021-04-24T18:15:43.972017+00:00 shinyapps[4021361]: Running on host: f9ff7166478a
2021-04-24T18:15:43.976709+00:00 shinyapps[4021361]: Server version: 1.8.6.1
2021-04-24T18:15:43.976719+00:00 shinyapps[4021361]: LANG: es_ES.UTF-8
2021-04-24T18:15:43.976744+00:00 shinyapps[4021361]: shiny version: 1.6.0
2021-04-24T18:15:43.976720+00:00 shinyapps[4021361]: R version: 4.0.3
2021-04-24T18:15:43.976754+00:00 shinyapps[4021361]: httpuv version: 1.5.4
2021-04-24T18:15:43.976823+00:00 shinyapps[4021361]: knitr version: (none)
2021-04-24T18:15:43.976811+00:00 shinyapps[4021361]: rmarkdown version: (none)
2021-04-24T18:15:43.976823+00:00 shinyapps[4021361]: jsonlite version: 1.7.2
2021-04-24T18:15:43.976824+00:00 shinyapps[4021361]: htmltools version: 0.5.1.1
2021-04-24T18:15:43.976824+00:00 shinyapps[4021361]: RJSONIO version: (none)
2021-04-24T18:15:43.976953+00:00 shinyapps[4021361]: Using pandoc: /opt/connect/ext/pandoc/2.11
2021-04-24T18:15:44.154604+00:00 shinyapps[4021361]: 
2021-04-24T18:15:44.154605+00:00 shinyapps[4021361]: Starting R with process ID: '26'
2021-04-24T18:15:44.184806+00:00 shinyapps[4021361]: Calls: local ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous>
2021-04-24T18:15:44.184806+00:00 shinyapps[4021361]: Error in value[[3L]](cond) : there is no package called ‘tidyverse’
2021-04-24T18:15:44.151354+00:00 shinyapps[4021361]: Using jsonlite for JSON processing
2021-04-24T18:15:44.184807+00:00 shinyapps[4021361]: Ejecución interrumpida
2021-04-24T18:15:55.143008+00:00 shinyapps[4021361]: Running on host: f9ff7166478a
2021-04-24T18:15:55.147562+00:00 shinyapps[4021361]: Server version: 1.8.6.1
2021-04-24T18:15:55.147571+00:00 shinyapps[4021361]: LANG: es_ES.UTF-8
2021-04-24T18:15:55.147654+00:00 shinyapps[4021361]: shiny version: 1.6.0
2021-04-24T18:15:55.147669+00:00 shinyapps[4021361]: RJSONIO version: (none)
2021-04-24T18:15:55.147808+00:00 shinyapps[4021361]: Using pandoc: /opt/connect/ext/pandoc/2.11
2021-04-24T18:15:55.147606+00:00 shinyapps[4021361]: R version: 4.0.3
2021-04-24T18:15:55.147664+00:00 shinyapps[4021361]: rmarkdown version: (none)
2021-04-24T18:15:55.320817+00:00 shinyapps[4021361]: Using jsonlite for JSON processing
2021-04-24T18:15:55.147655+00:00 shinyapps[4021361]: httpuv version: 1.5.4
2021-04-24T18:15:55.324082+00:00 shinyapps[4021361]: Starting R with process ID: '42'
2021-04-24T18:15:55.353485+00:00 shinyapps[4021361]: Calls: local ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous>
2021-04-24T18:15:55.147664+00:00 shinyapps[4021361]: knitr version: (none)
2021-04-24T18:15:55.324081+00:00 shinyapps[4021361]: 
2021-04-24T18:15:55.353486+00:00 shinyapps[4021361]: Ejecución interrumpida
2021-04-24T18:15:55.147677+00:00 shinyapps[4021361]: htmltools version: 0.5.1.1
2021-04-24T18:15:55.147665+00:00 shinyapps[4021361]: jsonlite version: 1.7.2
2021-04-24T18:15:55.353484+00:00 shinyapps[4021361]: Error in value[[3L]](cond) : there is no package called ‘tidyverse’

I think this has to do with the encoding of your file, since you are using non English characters, try setting options(encoding = "UTF-8") before deploying the app.

I tried it but the error persists. This is the new logs:

2021-04-25T12:17:41.317506+00:00 shinyapps[4027333]: Server version: 1.8.6.1
2021-04-25T12:17:41.311906+00:00 shinyapps[4027333]: Running on host: b320d338ce6b
2021-04-25T12:17:41.317514+00:00 shinyapps[4027333]: LANG: es_ES.UTF-8
2021-04-25T12:17:41.317515+00:00 shinyapps[4027333]: R version: 4.0.3
2021-04-25T12:17:41.317516+00:00 shinyapps[4027333]: shiny version: 1.6.0
2021-04-25T12:17:41.317521+00:00 shinyapps[4027333]: httpuv version: 1.5.4
2021-04-25T12:17:41.317549+00:00 shinyapps[4027333]: rmarkdown version: (none)
2021-04-25T12:17:41.317557+00:00 shinyapps[4027333]: knitr version: (none)
2021-04-25T12:17:41.317606+00:00 shinyapps[4027333]: RJSONIO version: (none)
2021-04-25T12:17:41.317569+00:00 shinyapps[4027333]: jsonlite version: 1.7.2
2021-04-25T12:17:41.317629+00:00 shinyapps[4027333]: htmltools version: 0.5.1.1
2021-04-25T12:17:41.317757+00:00 shinyapps[4027333]: Using pandoc: /opt/connect/ext/pandoc/2.11
2021-04-25T12:17:41.515941+00:00 shinyapps[4027333]: Using jsonlite for JSON processing
2021-04-25T12:17:41.519228+00:00 shinyapps[4027333]: 
2021-04-25T12:17:41.519228+00:00 shinyapps[4027333]: Starting R with process ID: '25'
2021-04-25T12:17:41.552268+00:00 shinyapps[4027333]: Error in value[[3L]](cond) : there is no package called ‘tidyverse’
2021-04-25T12:17:41.552270+00:00 shinyapps[4027333]: Calls: local ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous>
2021-04-25T12:17:41.552270+00:00 shinyapps[4027333]: Ejecución interrumpida
2021-04-25T12:17:50.850978+00:00 shinyapps[4027333]: Running on host: b320d338ce6b
2021-04-25T12:17:50.856536+00:00 shinyapps[4027333]: Server version: 1.8.6.1
2021-04-25T12:17:50.856547+00:00 shinyapps[4027333]: LANG: es_ES.UTF-8
2021-04-25T12:17:50.856549+00:00 shinyapps[4027333]: R version: 4.0.3
2021-04-25T12:17:50.856559+00:00 shinyapps[4027333]: httpuv version: 1.5.4
2021-04-25T12:17:50.856616+00:00 shinyapps[4027333]: jsonlite version: 1.7.2
2021-04-25T12:17:50.856579+00:00 shinyapps[4027333]: rmarkdown version: (none)
2021-04-25T12:17:50.856555+00:00 shinyapps[4027333]: shiny version: 1.6.0
2021-04-25T12:17:50.856640+00:00 shinyapps[4027333]: RJSONIO version: (none)
2021-04-25T12:17:50.856608+00:00 shinyapps[4027333]: knitr version: (none)
2021-04-25T12:17:50.856647+00:00 shinyapps[4027333]: htmltools version: 0.5.1.1
2021-04-25T12:17:50.856802+00:00 shinyapps[4027333]: Using pandoc: /opt/connect/ext/pandoc/2.11
2021-04-25T12:17:51.053512+00:00 shinyapps[4027333]: Using jsonlite for JSON processing
2021-04-25T12:17:51.057278+00:00 shinyapps[4027333]: 
2021-04-25T12:17:51.057280+00:00 shinyapps[4027333]: Starting R with process ID: '41'
2021-04-25T12:17:51.088811+00:00 shinyapps[4027333]: Error in value[[3L]](cond) : there is no package called ‘tidyverse’
2021-04-25T12:17:51.088813+00:00 shinyapps[4027333]: Calls: local ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous>
2021-04-25T12:17:51.088814+00:00 shinyapps[4027333]: Ejecución interrumpida
2021-04-25T12:24:43.317170+00:00 shinyapps[4027333]: Running on host: eee4a8d4a01f
2021-04-25T12:24:43.322900+00:00 shinyapps[4027333]: Server version: 1.8.6.1
2021-04-25T12:24:43.322914+00:00 shinyapps[4027333]: LANG: es_ES.UTF-8
2021-04-25T12:24:43.322922+00:00 shinyapps[4027333]: R version: 4.0.3
2021-04-25T12:24:43.322925+00:00 shinyapps[4027333]: shiny version: 1.6.0
2021-04-25T12:24:43.322925+00:00 shinyapps[4027333]: httpuv version: 1.5.4
2021-04-25T12:24:43.322934+00:00 shinyapps[4027333]: rmarkdown version: (none)
2021-04-25T12:24:43.322958+00:00 shinyapps[4027333]: jsonlite version: 1.7.2
2021-04-25T12:24:43.322939+00:00 shinyapps[4027333]: knitr version: (none)
2021-04-25T12:24:43.322968+00:00 shinyapps[4027333]: RJSONIO version: (none)
2021-04-25T12:24:43.322987+00:00 shinyapps[4027333]: htmltools version: 0.5.1.1
2021-04-25T12:24:43.323157+00:00 shinyapps[4027333]: Using pandoc: /opt/connect/ext/pandoc/2.11
2021-04-25T12:24:43.524412+00:00 shinyapps[4027333]: Using jsonlite for JSON processing
2021-04-25T12:24:43.527951+00:00 shinyapps[4027333]: 
2021-04-25T12:24:43.527951+00:00 shinyapps[4027333]: Starting R with process ID: '25'
2021-04-25T12:24:43.562141+00:00 shinyapps[4027333]: Error in value[[3L]](cond) : there is no package called ‘tidyverse’
2021-04-25T12:24:43.562142+00:00 shinyapps[4027333]: Calls: local ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous>
2021-04-25T12:24:43.562143+00:00 shinyapps[4027333]: Ejecución interrumpida
2021-04-25T12:24:56.774434+00:00 shinyapps[4027333]: Running on host: eee4a8d4a01f
2021-04-25T12:24:56.779979+00:00 shinyapps[4027333]: LANG: es_ES.UTF-8
2021-04-25T12:24:56.779992+00:00 shinyapps[4027333]: httpuv version: 1.5.4
2021-04-25T12:24:56.779966+00:00 shinyapps[4027333]: Server version: 1.8.6.1
2021-04-25T12:24:56.780033+00:00 shinyapps[4027333]: rmarkdown version: (none)
2021-04-25T12:24:56.779979+00:00 shinyapps[4027333]: R version: 4.0.3
2021-04-25T12:24:56.780091+00:00 shinyapps[4027333]: jsonlite version: 1.7.2
2021-04-25T12:24:56.779985+00:00 shinyapps[4027333]: shiny version: 1.6.0
2021-04-25T12:24:56.780112+00:00 shinyapps[4027333]: htmltools version: 0.5.1.1
2021-04-25T12:24:56.780050+00:00 shinyapps[4027333]: knitr version: (none)
2021-04-25T12:24:56.979677+00:00 shinyapps[4027333]: Using jsonlite for JSON processing
2021-04-25T12:24:56.780111+00:00 shinyapps[4027333]: RJSONIO version: (none)
2021-04-25T12:24:56.780261+00:00 shinyapps[4027333]: Using pandoc: /opt/connect/ext/pandoc/2.11
2021-04-25T12:24:56.983011+00:00 shinyapps[4027333]: 
2021-04-25T12:24:57.016860+00:00 shinyapps[4027333]: Calls: local ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous>
2021-04-25T12:24:56.983012+00:00 shinyapps[4027333]: Starting R with process ID: '41'
2021-04-25T12:24:57.016858+00:00 shinyapps[4027333]: Error in value[[3L]](cond) : there is no package called ‘tidyverse’
2021-04-25T12:24:57.016861+00:00 shinyapps[4027333]: Ejecución interrumpida

I have tried this myself, it is definitively an encoding issue, but I can't identify the proper encoding for your file, try rewriting your code in a UTF-8 file and publishing again.

Very thanks for your help!

That definitely worked. I also had to remove some panels, but at leats the basic one could be published. The app is quite simple but I will try to update it later.

Again, very thanks!

https://romn-adn.shinyapps.io/prueba/