Error building package: graph from Bioconductor

Dear all,
I come to a point where I need help. I am trying to deploy a shiny app and obtain the error below:

Preparing to deploy document...DONE
Uploading bundle for document: 8572645...DONE
Deploying bundle: 7200847 for document: 8572645 ...
Waiting for task: 1299182367
building: Building image: 8559204
building: Installing system dependencies
building: Fetching packages
error: Building package: graph
################################ Begin Task Log ################################
################################# End Task Log #################################
Error: Unhandled Exception: Child Task 1299182374 failed: Error building image: Error fetching graph (1.77.2) source. Error downloading package source. Please update your BioConductor packages to the latest version and try again: <BioconductorPackageSource repo=

The package I am trying to install on shiny.io is graph_1.77.2 from Bioconductor
I have added
options(repos = BiocManager::repositories())
at the start of my app.

Shared app files and functions are here: https://drive.switch.ch/index.php/s/Y5M8Ve2TWJE5eQ8

After a few hours and extensive search, I give up desperate and hope that someone came across that issue before.

Many thanks for any help you may be able to provide.

Christophe

##########
sessionInfo()
R version 4.3.0 (2023-04-21)
Platform: aarch64-apple-darwin20 (64-bit)
Running under: macOS Ventura 13.3.1

Matrix products: default
BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/lib/libRlapack.dylib; LAPACK version 3.11.0

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

time zone: Europe/Rome
tzcode source: internal

attached base packages:
[1] stats graphics grDevices utils datasets methods base

other attached packages:
[1] shinycustomloader_0.9.0 reshape2_1.4.4 dirichlet_0.0.999
[4] lubridate_1.9.2 forcats_1.0.0 stringr_1.5.0
[7] dplyr_1.1.2 purrr_1.0.1 readr_2.1.4
[10] tidyr_1.3.0 tibble_3.2.1 ggplot2_3.4.2
[13] tidyverse_2.0.0 bnlearn_4.8.3 gRain_1.3.13
[16] DT_0.27 shinydashboard_0.7.2 shiny_1.7.4
[19] gRbase_1.8.9

loaded via a namespace (and not attached):
[1] tidyselect_1.2.0 farver_2.1.1 fastmap_1.1.1 promises_1.2.0.1
[5] digest_0.6.31 timechange_0.2.0 mime_0.12 lifecycle_1.0.3
[9] ellipsis_0.3.2 magrittr_2.0.3 compiler_4.3.0 rlang_1.1.1
[13] sass_0.4.6 tools_4.3.0 igraph_1.4.2 utf8_1.2.3
[17] yaml_2.3.7 knitr_1.42 askpass_1.1 labeling_0.4.2
[21] htmlwidgets_1.6.2 curl_5.0.0 plyr_1.8.8 rsconnect_0.8.29
[25] withr_2.5.0 BiocGenerics_0.46.0 grid_4.3.0 stats4_4.3.0
[29] fansi_1.0.4 xtable_1.8-4 colorspace_2.1-0 scales_1.2.1
[33] cli_3.6.1 rmarkdown_2.21 ragg_1.2.5 generics_0.1.3
[37] rstudioapi_0.14 tzdb_0.3.0 cachem_1.0.8 parallel_4.3.0
[41] BiocManager_1.30.20 vctrs_0.6.2 Matrix_1.5-4 jsonlite_1.8.4
[45] hms_1.1.3 RBGL_1.75.0 Rgraphviz_2.43.0 systemfonts_1.0.4
[49] crosstalk_1.2.0 fontawesome_0.5.1 jquerylib_0.1.4 glue_1.6.2
[53] stringi_1.7.12 gtable_0.3.3 later_1.3.1 munsell_0.5.0
[57] pillar_1.9.0 htmltools_0.5.5 openssl_2.0.6 graph_1.77.2
[61] R6_2.5.1 textshaping_0.3.6 evaluate_0.21 lattice_0.21-8
[65] backports_1.4.1 memoise_2.0.1 broom_1.0.4 httpuv_1.6.9
[69] bslib_0.4.2 Rcpp_1.0.10 xfun_0.39 pkgconfig_2.0.3

I don't really know the details of shinyapps.io deployment, but I can see that while Bioconductor 17 has a macOS binary package for graph 1.77.2, for the source package, that you probably need on shinyapps.io, the published version is 1.78.0.

Although I suspect that older versions should work as well, maybe try to use that version?

Many thanks for the advice. I did upgrade to version 1.78.0 and check all Bioconductor packages with BiocManager::valid(), update what was required and it worked like a charm. Very grateful for the advice and kind regards. Christophe

1 Like

Great, can you please consider marking my comment as the solution, to help future users? Thanks!