Error when deploying shiny application to shinyapp.io

367 views
Skip to first unread message

yuanhang liu

unread,
Sep 16, 2016, 3:14:26 PM9/16/16
to shinyapps.io Users
Hello, everyone, 

I encountered one issue when trying to deploying my shiny application to shinyapp.io. The error message is 'Unhandled Exception: Repository must be specified for Bioconductor package source'. 

The output to appDenpedencies():

                 package     version       source
1          AnnotationDbi      1.34.4 Bioconductor
2                     BH    1.60.0-2         CRAN
3                   BPSC      0.99.0       github
4                Biobase      2.32.0 Bioconductor
5           BiocGenerics      0.18.0 Bioconductor
6           BiocParallel       1.6.6 Bioconductor
7             Biostrings      2.40.2 Bioconductor
8                  Cairo       1.5-9         CRAN
9                    DBI       0.5-1         CRAN
10                 DESeq      1.24.0 Bioconductor
11                DESeq2      1.12.4 Bioconductor
12              DEoptimR       1.0-6         CRAN
13                    DT         0.2         CRAN
14             Delaporte       3.0.0         CRAN
15                 EBSeq      1.12.0 Bioconductor
16                EDASeq       2.6.2 Bioconductor
17               Formula       1.2-1         CRAN
18                GGally       1.2.0         CRAN
19          GenomeInfoDb       1.8.7 Bioconductor
20     GenomicAlignments       1.8.4 Bioconductor
21       GenomicFeatures      1.24.5 Bioconductor
22         GenomicRanges      1.24.3 Bioconductor
23        HSMMSingleCell     0.106.2 Bioconductor
24                 Hmisc      3.17-4         CRAN
25               IRanges       2.6.1 Bioconductor
26            KernSmooth     2.23-15         CRAN
27                  LPCM      0.45-0         CRAN
28              Lmoments       1.2-3         CRAN
29                  MASS      7.3-45         CRAN
30                  MAST       0.934       github
31                Matrix     1.2-7.1         CRAN
32          MatrixModels       0.4-1         CRAN
33                   NMF      0.20.6         CRAN
34                NetSAM      1.12.0 Bioconductor
35           R.methodsS3       1.7.1         CRAN
36                  R.oo      1.20.0         CRAN
37               R.utils       2.4.0         CRAN
38                    R6       2.1.3         CRAN
39          RColorBrewer       1.1-2         CRAN
40                 RCurl    1.95-4.8         CRAN
41               RJSONIO       1.3-0         CRAN
42               RMTstat         0.3         CRAN
43                  ROTS       1.0.0 Bioconductor
44               RSQLite       1.0.0         CRAN
45                RUVSeq       1.6.2 Bioconductor
46                  Rcpp      0.12.7         CRAN
47         RcppArmadillo 0.7.400.2.0         CRAN
48             RcppEigen   0.3.2.9.0         CRAN
49                  Rook       1.1-1         CRAN
50             Rsamtools      1.24.0 Bioconductor
51             S4Vectors      0.10.3 Bioconductor
52             ShortRead      1.30.0 Bioconductor
53               SparseM        1.72         CRAN
54  SummarizedExperiment       1.2.3 Bioconductor
55                   TSP       1.1-4         CRAN
56                  VGAM       1.0-2         CRAN
57                 XBSeq       1.2.2 Bioconductor
58                   XML    3.98-1.4         CRAN
59               XVector      0.12.1 Bioconductor
60                 abind       1.4-5         CRAN
61               acepack     1.3-3.3         CRAN
62              annotate      1.50.0 Bioconductor
63           aroma.light       3.2.0 Bioconductor
64            assertthat         0.1         CRAN
65             base64enc       0.1-3         CRAN
66               biomaRt      2.28.0 Bioconductor
67                bitops       1.0-6         CRAN
68         blockmodeling       0.1.8         CRAN
69                  brew       1.0-6         CRAN
70               caTools      1.17.1         CRAN
71                   car       2.1-3         CRAN
72                 chron      2.3-47         CRAN
73                 class      7.3-14         CRAN
74               cluster       2.0.4         CRAN
75             codetools      0.2-14         CRAN
76            colorspace       1.2-6         CRAN
77              combinat       0.0-8         CRAN
78                crayon       1.3.2         CRAN
79                  curl         1.2         CRAN
80             d3heatmap     0.6.1.1         CRAN
81            data.table       1.9.6         CRAN
82            dendextend       1.3.0         CRAN
83             dichromat       2.0-0         CRAN
84                digest      0.6.10         CRAN
85               diptest      0.75-7         CRAN
86            distillery       1.0-2         CRAN
87            doParallel      1.0.10         CRAN
88                 dplyr       0.5.0         CRAN
89                 edgeR      3.14.0 Bioconductor
90              evaluate         0.9         CRAN
91              extRemes       2.0-8         CRAN
92               fastICA       1.2-0         CRAN
93               flexmix      2.3-13         CRAN
94               foreach       1.4.3         CRAN
95               foreign      0.8-67         CRAN
96               formatR         1.4         CRAN
97                   fpc      2.1-10         CRAN
98         futile.logger       1.4.3         CRAN
99        futile.options       1.0.0         CRAN
100                gclus       1.3.1         CRAN
101                gdata      2.17.0         CRAN
102           genefilter      1.54.2 Bioconductor
103          geneplotter      1.50.0 Bioconductor
104              ggplot2       2.1.0         CRAN
105               gplots       3.0.1         CRAN
106                graph      1.50.0 Bioconductor
107             gridBase       0.4-7         CRAN
108            gridExtra       2.2.1         CRAN
109               gtable       0.2.0         CRAN
110               gtools       3.5.0         CRAN
111                highr         0.6         CRAN
112            htmltools       0.3.5         CRAN
113          htmlwidgets         0.7         CRAN
114               httpuv       1.3.3         CRAN
115                 httr       1.2.1         CRAN
116              hwriter       1.3.2         CRAN
117               igraph       1.0.1         CRAN
118                irlba       2.1.1         CRAN
119            iterators       1.0.8         CRAN
120             jsonlite         1.1         CRAN
121              kernlab      0.9-24         CRAN
122                knitr        1.14         CRAN
123             labeling         0.3         CRAN
124             lambda.r       1.1.9         CRAN
125              lattice     0.20-34         CRAN
126         latticeExtra      0.6-28         CRAN
127             lazyeval       0.2.0         CRAN
128                limma     3.28.21 Bioconductor
129                 lme4      1.1-12         CRAN
130               locfit     1.5-9.1         CRAN
131             magrittr         1.5         CRAN
132             markdown       0.7.7         CRAN
133          matrixStats      0.50.2 Bioconductor
134               mclust         5.2         CRAN
135      metricsgraphics       0.9.0         CRAN
136                 mgcv      1.8-15         CRAN
137                 mime         0.5         CRAN
138                minqa       1.2.4         CRAN
139           modeltools      0.2-21         CRAN
140              monocle       1.6.2 Bioconductor
141              munsell       0.4.3         CRAN
142              mvtnorm       1.0-5         CRAN
143            networkD3      0.2.13         CRAN
144                 nlme     3.1-128         CRAN
145               nloptr       1.0.4         CRAN
146                 nnet      7.3-12         CRAN
147              openssl       0.9.4         CRAN
148              packrat     0.4.8-1         CRAN
149             pbkrtest       0.4-6         CRAN
150           pcaMethods      1.64.0 Bioconductor
151             pkgmaker        0.22         CRAN
152                 plyr       1.8.4         CRAN
153                  png       0.1-7         CRAN
154             prabclus       2.2-6         CRAN
155               pracma       1.9.5         CRAN
156               praise       1.0.0         CRAN
157       preprocessCore      1.34.0 Bioconductor
158                  qap       0.1-0         CRAN
159             quadprog       1.5-5         CRAN
160             quantreg        5.29         CRAN
161              rCharts       0.4.5       github
162             registry         0.3         CRAN
163              reshape       0.8.5         CRAN
164             reshape2       1.4.1         CRAN
165                  rga         0.8       github
166                rjson      0.2.15         CRAN
167            rmarkdown         1.0         CRAN
168             rngtools       1.2.4         CRAN
169           robustbase      0.92-6         CRAN
170                rpart      4.1-10         CRAN
171          rtracklayer      1.32.2 Bioconductor
172               scales       0.4.0         CRAN
173        scatterplot3d      0.3-37         CRAN
174                 scde       2.0.1 Bioconductor
175            seriation       1.2-1         CRAN
176                shiny        0.14         CRAN
177       shinydashboard       0.5.2         CRAN
178          shinythemes       1.0.1         CRAN
179              slidify         0.5       github
180     slidifyLibraries       0.3.1       github
181                 snow       0.4-1         CRAN
182          sourcetools       0.1.5         CRAN
183              statmod      1.4.26         CRAN
184              stringi       1.1.1         CRAN
185              stringr       1.1.0         CRAN
186             survival      2.39-5         CRAN
187             testthat       1.0.2         CRAN
188              threejs       0.2.2         CRAN
189               tibble         1.2         CRAN
190          trimcluster       0.1-2         CRAN
191              whisker       0.3-2         CRAN
192               xtable       1.8-2         CRAN
193                 yaml      2.1.13         CRAN
194             zlibbioc      1.18.0 Bioconductor

I don't see anything particularly wrong. I tried deleting rsconnect folder and deploy again as suggested by Alper Kucukural. But it didn't work. Any help would be appreciated! 

yuanhang liu

unread,
Sep 20, 2016, 5:32:42 PM9/20/16
to shinyapps.io Users
Tried uninstall and reinstall all the Bioconductor packages, but still without any luck. 

Leon Shi

unread,
Sep 20, 2016, 10:25:18 PM9/20/16
to shinyapps.io Users
Hi, Yuanhang,

I came across the same problem these days when deploying my shinyapp and found no online solution anywhere. Thus, I debugged the problem step by step and finally got the answer. The failure of deployment, at least in my situation, was caused from the inconsistent sources of one dependency package: "matrixStats". I noticed that this package also appeared in your appDependencies, which confirmed my hypothesis. 

In detail, the package "matrixStats" is a "CRAN" package, which means it can be found and installed from CRAN. However, in the output of the function "appDependencies()", you can find that the source of "matrixStats" is "Bioconductor". Some packages could be found both in CRAN and Bioconductor, but unfortunately, "matrixStats" is not one of them. I don't know why "appDependencies()" detected the wrong source, and also I didn't go deep into this problem. I guess this might be a bug of the function "appDependencies()".

My solution to the problem is to re-install the package "matrixStats" from Github. Go to the CRAN page of "matrixStats" and you can find the URL. You may need to install Rtools first, and then using
devtools::install_github("HenrikBengtsson/matrixStats")

to finish re-installation. This can change some properties of the package. Now, when you "appDependencies()" again, you can find that the source of "matrixStats" has changed into "github". I deployed my shinyapp successfully after that. 

Hope my finding and solution are helpful to you. Good luck~

Leon

在 2016年9月17日星期六 UTC+8上午3:14:26,yuanhang liu写道:

yuanhang liu

unread,
Sep 26, 2016, 12:38:28 PM9/26/16
to shinyapps.io Users
Hi, Dear, Leon, 

Thanks so much for your advice. It solved my problem perfectly. Thanks again for your help!
Reply all
Reply to author
Forward
0 new messages