Trouble deploying shiny app - Error: Unable to retrieve package records for the following packages:

I have a problm when I try to deploy my Rshiny app. I get an error on the cowplot and ReporteRs packages (see details below). The thing is that I do not use or need this packages in my application, they don't seem to be dependencies of the packages I use either. I tried to install the two packages to solve this but I get this error:

  package ‘cowplot’ is not available (for R version 3.4.1)

I also uninstalled all the packages I need and reinstall them but it doesn't look like it changed anything. I looked a lot online but did not find anything that worked so any help would be highly appreciated.

Thanks a lot,

*deployApp()*
*Preparing to deploy application...DONE*
*Uploading bundle for application: 1565586...*
*Error: Unable to retrieve package records for the following packages:*
*- "ReporteRs", "cowplot"*
*In addition: There were 41 warnings (use warnings() to see them)*
*> warnings()*
*Warning messages:*
*1: In fileDependencies.R(file) :*
*  Failed to parse C:/Users/Ducha1L/AppData/Local/Temp/RtmpKC8DKU/file35f4b225c3/old_clustering.R ; dependencies in this file will not be discovered.*
*2: In FUN(X[[i]], ...) :*
*  Package 'ReporteRs' not available in repository or locally*
*3: In FUN(X[[i]], ...) : Package 'cowplot' not available in repository or locally*
*4: In FUN(X[[i]], ...) :*
*  Failed to infer source for package 'DBI'; using latest available version on CRAN instead*
*5: In FUN(X[[i]], ...) :*
*  Failed to infer source for package 'DT'; using latest available version on CRAN instead*
*6: In FUN(X[[i]], ...) :*
*  Failed to infer source for package 'Formula'; using latest available version on CRAN instead*
*7: In FUN(X[[i]], ...) :*
*  Failed to infer source for package 'Hmisc'; using latest available version on CRAN instead*
*8: In FUN(X[[i]], ...) :*
*  Failed to infer source for package 'RSQLite'; using latest available version on CRAN instead*
*9: In FUN(X[[i]], ...) :*
*  Failed to infer source for package 'acepack'; using latest available version on CRAN instead*
*10: In FUN(X[[i]], ...) :*
*  Failed to infer source for package 'bit'; using latest available version on CRAN instead*
*11: In FUN(X[[i]], ...) :*
*  Failed to infer source for package 'bit64'; using latest available version on CRAN instead*
*12: In FUN(X[[i]], ...) :*
*  Failed to infer source for package 'blob'; using latest available version on CRAN instead*
*13: In FUN(X[[i]], ...) :*
*  Failed to infer source for package 'callr'; using latest available version on CRAN instead*
*14: In FUN(X[[i]], ...) :*
*  Failed to infer source for package 'checkmate'; using latest available version on CRAN instead*
*15: In FUN(X[[i]], ...) :*
*  Failed to infer source for package 'clipr'; using latest available version on CRAN instead*
*16: In FUN(X[[i]], ...) :*
*  Failed to infer source for package 'dbplyr'; using latest available version on CRAN instead*
*17: In FUN(X[[i]], ...) :*
*  Failed to infer source for package 'ggpubr'; using latest available version on CRAN instead*
*18: In FUN(X[[i]], ...) :*
*  Failed to infer source for package 'ggrepel'; using latest available version on CRAN instead*
*19: In FUN(X[[i]], ...) :*
*  Failed to infer source for package 'ggsci'; using latest available version on CRAN instead*
*20: In FUN(X[[i]], ...) :*
*  Failed to infer source for package 'ggsignif'; using latest available version on CRAN instead*
*21: In FUN(X[[i]], ...) :*
*  Failed to infer source for package 'ggthemes'; using latest available version on CRAN instead*
*22: In FUN(X[[i]], ...) :*
*  Failed to infer source for package 'gridExtra'; using latest available version on CRAN instead*
*23: In FUN(X[[i]], ...) :*
*  Failed to infer source for package 'htmlTable'; using latest available version on CRAN instead*
*24: In FUN(X[[i]], ...) :*
*  Failed to infer source for package 'kohonen'; using latest available version on CRAN instead*
*25: In FUN(X[[i]], ...) :*
*  Failed to infer source for package 'latticeExtra'; using latest available version on CRAN instead*
*26: In FUN(X[[i]], ...) :*
*  Failed to infer source for package 'leaflet'; using latest available version on CRAN instead*
*27: In FUN(X[[i]], ...) :*
*  Failed to infer source for package 'leaflet.providers'; using latest available version on CRAN instead*
*28: In FUN(X[[i]], ...) :*
*  Failed to infer source for package 'memoise'; using latest available version on CRAN instead*
*29: In FUN(X[[i]], ...) :*
*  Failed to infer source for package 'png'; using latest available version on CRAN instead*
*30: In FUN(X[[i]], ...) :*
*  Failed to infer source for package 'polynom'; using latest available version on CRAN instead*
*31: In FUN(X[[i]], ...) :*
*  Failed to infer source for package 'processx'; using latest available version on CRAN instead*
*32: In FUN(X[[i]], ...) :*
*  Failed to infer source for package 'ps'; using latest available version on CRAN instead*
*33: In FUN(X[[i]], ...) :*
*  Failed to infer source for package 'raster'; using latest available version on CRAN instead*
*34: In FUN(X[[i]], ...) :*
*  Failed to infer source for package 'readr'; using latest available version on CRAN instead*
*35: In FUN(X[[i]], ...) :*
*  Failed to infer source for package 'reshape'; using latest available version on CRAN instead*
*36: In FUN(X[[i]], ...) :*
*  Failed to infer source for package 'rhandsontable'; using latest available version on CRAN instead*
*37: In FUN(X[[i]], ...) :*
*  Failed to infer source for package 'rsvg'; using latest available version on CRAN instead*
*38: In FUN(X[[i]], ...) :*
*  Failed to infer source for package 'som'; using latest available version on CRAN instead*
*39: In FUN(X[[i]], ...) :*
*  Failed to infer source for package 'sp'; using latest available version on CRAN instead*
*40: In FUN(X[[i]], ...) :*
*  Failed to infer source for package 'viridis'; using latest available version on CRAN instead*
*41: In FUN(X[[i]], ...) :*
*  Failed to infer source for package 'webshot'; using latest available version on CRAN instead*
*```*
Lauriane

Have you solved this problem? I got the same issue now. It works with shinyapp but when trying to deploy I am getting

rsconnect::deployApp('C:\Users\ORCAs\Desktop\Covid-19',forceUpdate=TRUE)
Preparing to deploy application...DONE
Uploading bundle for application: 1999310...Error: Unable to retrieve package records for the following packages:

  • "emo", "shinyThings"
    In addition: Warning messages:
    1: In FUN(X[[i]], ...) :
    Package 'emo' not available in repository or locally
    2: In FUN(X[[i]], ...) :
    Package 'shinyThings' not available in repository or locally
    3: In FUN(X[[i]], ...) :
    Failed to infer source for package 'furrr'; using latest available version on CRAN instead
    4: In FUN(X[[i]], ...) :
    Failed to infer source for package 'future'; using latest available version on CRAN instead
    5: In FUN(X[[i]], ...) :
    Failed to infer source for package 'globals'; using latest available version on CRAN instead
    6: In FUN(X[[i]], ...) :
    Failed to infer source for package 'here'; using latest available version on CRAN instead
    7: In FUN(X[[i]], ...) :
    Failed to infer source for package 'listenv'; using latest available version on CRAN instead
    8: In FUN(X[[i]], ...) :
    Failed to infer source for package 'shinycssloaders'; using latest available version on CRAN instead

No I did not managed to solve it. I tried a lot of things like installing a previous version of the packages that were causing the issue, uninstalling all the packages from my computer, using the packrat options like bellow...

packrat::init(options = list(ignored.packages = c(<pkgs>)))

But at the end new packages errors were appearing and I just decided to dropped it and moved everything to an AWS server.

Good luck with that, if you find a solution I would be curious to know it and I think it would help others (I saw a lot of people having this kind of issues).

1 Like

I have a clue for that. I am using free edition on shiny portal so they let me 25 hours (how they calculate 25 hours I do not know). At the end of the limit I got this error. Maybe the system forces us to upgrade.

Well, I was under one the of the upgrade offers so I don't think it is linked

Edit: For some reason, what solved for me was to select the specific files to deploy like this:

rsconnect::deployApp('.',   appFiles = c( "global.R", "server.R", "ui.R", ...))