InteractiveComplexHeatmap icon indicating copy to clipboard operation
InteractiveComplexHeatmap copied to clipboard

InteractiveComplexHeatmapWidget will be compatible with the latest version of shiny?

Open ShawnWx2019 opened this issue 9 months ago • 1 comments

Hello, it seems that after shiny version > 1.7.5, InteractiveComplexHeatmapWidget and InteractiveComplexHeatmapModal stopped working. They get stuck at 'Making heatmap, please wait...'. Will these two functions be adapted to the latest version of shiny in the future?

demo code

m = matrix(rnorm(100), 10)
ht = Heatmap(m)
ht = draw(ht)
ui = fluidPage(
  actionButton("show_heatmap", "Generate_heatmap"),
)

server = function(input, output, session) {
  observeEvent(input$show_heatmap, {
    InteractiveComplexHeatmapModal(input, output, session, ht)
  })
}
shiny::shinyApp(ui, server)

# or use InteractiveComplexHeatmapWidget()
ui = fluidPage(
  actionButton("show_heatmap", "Generate_heatmap"),
  htmlOutput("heatmap_output")
)

server = function(input, output, session) {
  observeEvent(input$show_heatmap, {
    InteractiveComplexHeatmapWidget(input, output, session, ht,
                                    output_id = "heatmap_output")
  })
}
shiny::shinyApp(ui, server)

session information

> sessionInfo()
R version 4.3.3 (2024-02-29)
Platform: aarch64-apple-darwin20 (64-bit)
Running under: macOS Sonoma 14.4.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: Asia/Shanghai
tzcode source: internal

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

other attached packages:
[1] shiny_1.8.1.1                    InteractiveComplexHeatmap_1.11.1 ComplexHeatmap_2.18.0           

loaded via a namespace (and not attached):
 [1] sass_0.4.9          xml2_1.3.6          shape_1.4.6.1       stringi_1.8.3       digest_0.6.35       magrittr_2.0.3     
 [7] evaluate_0.23       RColorBrewer_1.1-3  iterators_1.0.14    circlize_0.4.16     fastmap_1.1.1       foreach_1.5.2      
[13] doParallel_1.0.17   jsonlite_1.8.8      GlobalOptions_0.1.2 promises_1.3.0      viridisLite_0.4.2   scales_1.3.0       
[19] textshaping_0.3.7   jquerylib_0.1.4     codetools_0.2-19    cli_3.6.2           rlang_1.1.3         crayon_1.5.2       
[25] munsell_0.5.1       cachem_1.0.8        tools_4.3.3         parallel_4.3.3      memoise_2.0.1       colorspace_2.1-0   
[31] httpuv_1.6.15       kableExtra_1.4.0    GetoptLong_1.0.5    BiocGenerics_0.48.1 R6_2.5.1            mime_0.12          
[37] png_0.1-8           matrixStats_1.3.0   stats4_4.3.3        lifecycle_1.0.4     magick_2.8.3        stringr_1.5.1      
[43] S4Vectors_0.40.2    IRanges_2.36.0      clue_0.3-65         clisymbols_1.2.0    ragg_1.3.0          fontawesome_0.5.2  
[49] cluster_2.1.6       bslib_0.7.0         later_1.3.2         glue_1.7.0          Rcpp_1.0.12         systemfonts_1.0.6  
[55] xfun_0.43           rstudioapi_0.16.0   knitr_1.45          xtable_1.8-4        rjson_0.2.21        htmltools_0.5.8.1  
[61] rmarkdown_2.26      svglite_2.1.3       compiler_4.3.3     

The progress bar do not appear.

image

Thanks!

ShawnWx2019 avatar May 09 '24 09:05 ShawnWx2019

Not a maintainer of this library but just wanted to let you know that you are not alone :v: See: https://github.com/jokergoo/InteractiveComplexHeatmap/issues/109

IvoLeist avatar May 26 '24 16:05 IvoLeist