jbkunst / highcharter

R wrapper for highcharts
http://jkunst.com/highcharter/
Other
719 stars 148 forks source link

Shinyapp Hosting Issue: Load failed for igraph/highcharter #432

Closed AdamLeckenby closed 2 years ago

AdamLeckenby commented 6 years ago

Hello,

I wanted to say thank you for this package. Unfortunately, I've recently come across an issue which I have been unable to resolve. In short, after uploading a shiny flexdashboard to shinyapps.io, the current github version of highcharter causes the following error to appear and the dashboard does not render:

package or namespace load failed for 'highcharter' in dyn.load(file, DLLpath = DLLpath, ...): unable to load shared object '/usr/local/lib/R/site-library/igraph/libs/igraph.so': libglpk.so.36: cannot open shared object file: No such file or directory

The dashboard renders fine locally, whether using the inbuilt window or opening in a browser. The issue only appears after deploying the application to shinyapps.io, and only with the current github version. Using the CRAN version (v0.5.0) I experience the "unsupported type 'x'" issue which was fixed in issue #420, but this code has previously worked without any issue. I don't use Shiny server, and so I cannot comment on this, but the same issue is mentioned here for another user with shinydashboard on a shiny server: Link. I also experience the same issue with the latest version of R (3.5.0) on Windows.

Please follow this link to a private gist containing reproducible code which will trigger this issue.

Alternatively, I have attached an .rmd file which will reproduce this issue. Click here to download

Please let me know if you need any further details.

Thanks!

Session info:

R version 3.4.2 (2017-09-28) Platform: x86_64-pc-linux-gnu (64-bit) Running under: Ubuntu 16.04.3 LTS

Matrix products: default BLAS: /usr/lib/libblas/libblas.so.3.6.0 LAPACK: /usr/lib/lapack/liblapack.so.3.6.0

locale: [1] LC_CTYPE=en_GB.UTF-8 LC_NUMERIC=C LC_TIME=en_GB.UTF-8 LC_COLLATE=en_GB.UTF-8 LC_MONETARY=en_GB.UTF-8
[6] LC_MESSAGES=en_GB.UTF-8 LC_PAPER=en_GB.UTF-8 LC_NAME=C LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_GB.UTF-8 LC_IDENTIFICATION=C

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

other attached packages: [1] highcharter_0.6.0 igraph_1.2.1 SPADEVizR_1.0-6 msa_1.10.0 Biostrings_2.46.0 XVector_0.18.0 IRanges_2.12.0
[8] S4Vectors_0.16.0 BiocGenerics_0.24.0

loaded via a namespace (and not attached): [1] utf8_1.1.3 shinydashboard_0.7.0 heatmaply_0.14.1 RSQLite_2.1.0 AnnotationDbi_1.40.0
[6] htmlwidgets_1.2 grid_3.4.2 TSP_1.1-5 trimcluster_0.1-2 flexdashboard_0.5.1
[11] devtools_1.13.5 flowCore_1.44.2 munsell_0.4.3 codetools_0.2-15 withr_2.1.2
[16] colorspace_1.3-2 BiocInstaller_1.28.0 Biobase_2.38.0 ggfortify_0.4.4 knitr_1.20
[21] rstudioapi_0.7 SingleCellExperiment_1.0.0 robustbase_0.92-8 TTR_0.23-3 git2r_0.21.0
[26] tximport_1.6.0 GenomeInfoDbData_1.0.0 mnormt_1.5-5 bit64_0.9-7 rhdf5_2.22.0
[31] rprojroot_1.3-2 gclus_1.3.1 diptest_0.75-7 rlist_0.4.6.1 R6_2.2.2
[36] GenomeInfoDb_1.14.0 ggbeeswarm_0.6.0 RJSONIO_1.3-0 seriation_1.2-3 locfit_1.5-9.1
[41] flexmix_2.3-14 bitops_1.0-6 DelayedArray_0.4.1 assertthat_0.2.0 promises_1.0.1
[46] scales_0.5.0 nnet_7.3-12 beeswarm_0.2.3 gtable_0.2.0 rlang_0.2.0.9001
[51] GlobalOptions_0.0.13 randomForestSRC_2.5.1 splines_3.4.2 lazyeval_0.2.1.9000 broom_0.4.4
[56] yaml_2.1.18 reshape2_1.4.3 crosstalk_1.0.1 backports_1.1.2 httpuv_1.4.1
[61] quantmod_0.4-13 rsconnect_0.8.8 tools_3.4.2 psych_1.8.3.3 ggplot2_2.2.1.9000
[66] gplots_3.0.1 RColorBrewer_1.1-2 ggdendro_0.1-20 Rcpp_0.12.16 plyr_1.8.4
[71] progress_1.1.2 zlibbioc_1.24.0 purrr_0.2.4 RCurl_1.95-4.10 prettyunits_1.0.2
[76] GetoptLong_0.1.6 viridis_0.5.1 zoo_1.8-1 SummarizedExperiment_1.8.1 ggrepel_0.7.0
[81] cluster_2.0.6 magrittr_1.5 data.table_1.10.4-3 circlize_0.4.3 mvtnorm_1.0-7
[86] whisker_0.3-2 matrixStats_0.53.1 packcircles_0.3.1 mime_0.5 evaluate_0.10.1
[91] xtable_1.8-2 XML_3.98-1.11 mclust_5.4 gridExtra_2.3 shape_1.4.4
[96] compiler_3.4.2 biomaRt_2.35.13 scater_1.6.3 tibble_1.4.2 KernSmooth_2.23-15
[101] crayon_1.3.4 htmltools_0.3.6 corpcor_1.6.9 pcaPP_1.9-73 later_0.7.1
[106] tidyr_0.8.0 rrcov_1.4-3 lubridate_1.7.4 DBI_0.8 ComplexHeatmap_1.17.1
[111] MASS_7.3-47 fpc_2.1-11 Matrix_1.2-11 cli_1.0.0 gdata_2.18.0
[116] bindr_0.1.1 GenomicRanges_1.30.3 pkgconfig_2.0.1 registry_0.5 foreign_0.8-69
[121] plotly_4.7.1 foreach_1.4.4 vipor_0.4.5 webshot_0.5.0 stringr_1.3.0
[126] digest_0.6.15 graph_1.56.0 rmarkdown_1.9 dendextend_1.7.0 edgeR_3.20.9
[131] curl_3.2 kernlab_0.9-25 shiny_1.0.5.9000 gtools_3.5.0 modeltools_0.2-21
[136] rjson_0.2.15 nlme_3.1-137 jsonlite_1.5 bindrcpp_0.2.2 viridisLite_0.3.0
[141] limma_3.34.9 pillar_1.2.1 lattice_0.20-35 httr_1.3.1 DEoptimR_1.0-8
[146] survival_2.41-3 glue_1.2.0 xts_0.10-2 prabclus_2.2-6 iterators_1.0.9
[151] bit_1.1-12 class_7.3-14 stringi_1.1.7 blob_1.1.1 caTools_1.17.1
[156] memoise_1.1.0 dplyr_0.7.4

zross commented 6 years ago

Did you happen to solve this? I'm seeing the same error with highcharter_0.5.0. I was deploying my app just fine until recently and I'm seeing this error.

Error in value[3L] : package or namespace load failed for ‘highcharter’ in dyn.load(file, DLLpath = DLLpath, ...): unable to load shared object '/opt/R/3.4.0/lib/R/library/igraph/libs/igraph.so': libRlapack.so: cannot open shared object file: No such file or directory Calls: local ... tryCatch -> tryCatchList -> tryCatchOne -> Execution halted

AdamLeckenby commented 6 years ago

I couldn't find a solution to this issue when using v0.5.0, but updating to v0.6.0 stopped this error from appearing. CRAN is currently on version v0.5.0, so I installed the latest update directly from GitHub:

devtools::install_github("jbkunst/highcharter")

Currently I'm on R version 3.4.2 (2017-09-28), but I've just checked and the issue does not present with version v0.6.0 on R version 3.5.1 for me.

I hope this helps.

-Adam

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. Feel free to reopen it if you find it necessary.

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. Feel free to reopen it if you find it necessary.