Problem to deploy app, does run local, asks for backports??

I have a shiny app that does run local without any problems. The app loads a csv file and a shapefile (and I do not use any absolute file paths). The app reacts on the input selection and selects the wright data from the csv which is joined to the shape file.
When I try to deploy this app on the shinyapps.io I get the following message in the deploy screen:

Preparing to deploy application...DONE
Uploading bundle for application: 1716325...Error: 
* Application depends on package "backports" but it is not installed.
   Please resolve before continuing.

* Application depends on package "ellipsis" but it is not installed.
   Please resolve before continuing.

* Application depends on package "stringi" but it is not installed.
   Please resolve before continuing.

* Application depends on package "zeallot" but it is not installed.
   Please resolve before continuing.
In addition: There were 39 warnings (use warnings() to see them)
Execution halted

Also the warnings refer to backports.:
Warning messages:
1: In FUN(X[[i]], ...) :
Failed to infer source for package 'backports'; using latest available version on CRAN instead
2: In FUN(X[[i]], ...) :
Failed to infer source for package 'ellipsis'; using latest available version on CRAN instead
3: In FUN(X[[i]], ...) :
Failed to infer source for package 'stringi'; using latest available version on CRAN instead
4: In FUN(X[[i]], ...) :.... etc

The appDependencies are listed below, I don't know if that is informative. Does anyone know how I can solve this problem?
package version source
1 BH 1.72.0-3 CRAN
2 MASS 7.3-51.4 CRAN
3 Matrix 1.2-18 CRAN
4 R6 2.4.1 CRAN
5 RColorBrewer 1.1-2 CRAN
6 Rcpp 1.0.3 CRAN
7 assertthat 0.2.1 CRAN
8 backports 1.1.5 CRAN
9 base64enc 0.1-3 CRAN
10 cli 2.0.1 CRAN
11 colorspace 1.4-1 CRAN
12 crayon 1.3.4 CRAN
13 crosstalk 1.0.0 CRAN
14 digest 0.6.23 CRAN
15 dplyr 0.8.3 CRAN
16 ellipsis 0.3.0 CRAN
17 fansi 0.4.1 CRAN
18 farver 2.0.3 CRAN
19 fastmap 1.0.1 CRAN
20 ggplot2 3.2.1 CRAN
21 glue 1.3.1 CRAN
22 gridExtra 2.3 CRAN
23 gtable 0.3.0 CRAN
24 htmltools 0.4.0 CRAN
25 htmlwidgets 1.5.1 CRAN
26 httpuv 1.5.2 CRAN
27 jsonlite 1.6 CRAN
28 labeling 0.3 CRAN
29 later 1.0.0 CRAN
30 lattice 0.20-38 CRAN
31 lazyeval 0.2.2 CRAN
32 leaflet 2.0.3 CRAN
33 leaflet.providers 1.9.0 CRAN
34 lifecycle 0.1.0 CRAN
35 magrittr 1.5 CRAN
36 markdown 1.1 CRAN
37 mgcv 1.8-31 CRAN
38 mime 0.8 CRAN
39 munsell 0.5.0 CRAN
40 nlme 3.1-142 CRAN
41 pillar 1.4.3 CRAN
42 pkgconfig 2.0.3 CRAN
43 plogr 0.2.0 CRAN
44 plyr 1.8.5 CRAN
45 png 0.1-7 CRAN
46 promises 1.1.0 CRAN
47 purrr 0.3.3 CRAN
48 raster 3.0-7 CRAN
49 reshape2 1.4.3 CRAN
50 rgdal 1.4-8 CRAN
51 rlang 0.4.2 CRAN
52 scales 1.1.0 CRAN
53 shiny 1.4.0 CRAN
54 sourcetools 0.1.7 CRAN
55 sp 1.3-2 CRAN
56 stringi 1.4.5 CRAN
57 stringr 1.4.0 CRAN
58 tibble 2.1.3 CRAN
59 tidyselect 0.2.5 CRAN
60 utf8 1.1.4 CRAN
61 vctrs 0.2.1 CRAN
62 viridis 0.5.1 CRAN
63 viridisLite 0.3.0 CRAN
64 withr 2.1.2 CRAN
65 xfun 0.12 CRAN
66 xtable 1.8-4 CRAN
67 yaml 2.2.0 CRAN
68 zeallot 0.1.0 CRAN

Hi, I've made a trivial app that makes a trivial 'use' of backports.
Can you try this locally, and then try to deploy it ?


library(shiny)
library(DT)
library(tidyverse)
library(backports)
# Define UI for application that draws a histogram
ui <- fluidPage( dataTableOutput("testdtout")
)


examplem <- matrix(data = runif(n = 52*10^5), nrow=10^5,ncol=52)
example_df <- as_tibble(examplem)

backports::import(NULL)

# Define server logic required to draw a histogram
server <- function(input, output) {
    
    output$testdtout <- DT::renderDataTable({
        example_df
    })
}

# Run the application 
shinyApp(ui = ui, server = server)

When I run this file local, it gives the following message:

Loading required package: shiny

Attaching package: ‘DT’

The following objects are masked from ‘package:shiny’:

    dataTableOutput, renderDataTable

Error: package or namespace load failed for ‘tidyverse’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
 there is no package called ‘zeallot’

very curious. ok lets compare out versions and the dependencies of those versions, maybe zeallot used to be in , but now its out ?

utils::packageVersion("tidyverse")
[1] ‘1.3.0’
tools::package_dependencies("tidyverse")
$tidyverse
 [1] "broom"      "cli"        "crayon"     "dbplyr"     "dplyr"     
 [6] "forcats"    "ggplot2"    "haven"      "hms"        "httr"      
[11] "jsonlite"   "lubridate"  "magrittr"   "modelr"     "pillar"    
[16] "purrr"      "readr"      "readxl"     "reprex"     "rlang"     
[21] "rstudioapi" "rvest"      "stringr"    "tibble"     "tidyr"     
[26] "xml2"

Thank you for your help. I had to install the package zeallot and then this app, but also my own app can be published. I did not think of installing the packages named in the warning because the app did run local. But now I understand the problem was local in publishing any app. Thank for getting me on track.

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