darwin-eu-dev/TreatmentPatterns

[BUG] `launchResultsExplorer` Fails To Ingest Zipfile

Opened this issue · 2 comments

Describe the bug
When I try to upload a zip file to the results explorer with my results from generating treatment patterns, the explorer does not generate any images and hangs on this screen:

image

Also notice how the page is greyed out -- it is not like that before uploading.

To Reproduce

There really isn't code to show for this behavior as I can upload a zip file to the location the explorer wants me to and then it indefinitely hangs. Here's the error I see from the console:

> launchResultsExplorer()

Listening on http://127.0.0.1:6360
Warning in unzip(zipfile = private$.reactiveValues$dataPath[[i]], files = fileName,  :
  requested file not found in the zip file
Warning: Error in file: invalid 'description' argument
  3: runApp [/tmp/RtmpWQD5w0/R.INSTALLd05c34ca6cb1/shiny/R/runapp.R#388]
  2: print.shiny.appobj [/tmp/RtmpWQD5w0/R.INSTALLd05c34ca6cb1/shiny/R/shinyapp.R#553]
  1: <Anonymous>
Warning in unzip(zipfile = private$.reactiveValues$dataPath[[i]], files = fileName,  :
  requested file not found in the zip file
Warning: Error in file: invalid 'description' argument
  3: runApp [/tmp/RtmpWQD5w0/R.INSTALLd05c34ca6cb1/shiny/R/runapp.R#388]
  2: print.shiny.appobj [/tmp/RtmpWQD5w0/R.INSTALLd05c34ca6cb1/shiny/R/shinyapp.R#553]
  1: <Anonymous>

Additionally, here is my R version information:

R version 4.3.1 (2023-06-16)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Fedora Linux 38 (Thirty Eight)

Matrix products: default
BLAS/LAPACK: FlexiBLAS OPENBLAS-OPENMP;  LAPACK version 3.11.0

locale:
 [1] LC_CTYPE=en_US.utf8          LC_NUMERIC=C                
 [3] LC_TIME=en_US.utf8           LC_COLLATE=en_US.utf8       
 [5] LC_MONETARY=en_US.utf8       LC_MESSAGES=en_US.utf8      
 [7] LC_PAPER=en_US.utf8          LC_NAME=en_US.utf8          
 [9] LC_ADDRESS=en_US.utf8        LC_TELEPHONE=en_US.utf8     
[11] LC_MEASUREMENT=en_US.utf8    LC_IDENTIFICATION=en_US.utf8

time zone: America/New_York
Running under: Fedora Linux 38 (Thirty Eight)

Matrix products: default
BLAS/LAPACK: FlexiBLAS OPENBLAS-OPENMP;  LAPACK version 3.11.0

locale:
 [1] LC_CTYPE=en_US.utf8          LC_NUMERIC=C                
 [3] LC_TIME=en_US.utf8           LC_COLLATE=en_US.utf8       
 [5] LC_MONETARY=en_US.utf8       LC_MESSAGES=en_US.utf8      
 [7] LC_PAPER=en_US.utf8          LC_NAME=en_US.utf8          
 [9] LC_ADDRESS=en_US.utf8        LC_TELEPHONE=en_US.utf8     
[11] LC_MEASUREMENT=en_US.utf8    LC_IDENTIFICATION=en_US.utf8

time zone: America/New_York
tzcode source: system (glibc)

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

other attached packages:
[1] plotly_4.10.4           ggplot2_3.5.0           shinydashboard_0.7.2   
[4] shiny_1.8.0             TreatmentPatterns_2.6.2 tibble_3.2.1           
[7] DatabaseConnector_6.3.2 CirceR_1.3.2            dplyr_1.1.4            

loaded via a namespace (and not attached):
 [1] gtable_0.3.4          bslib_0.6.1           rjson_0.2.21         
 [4] htmlwidgets_1.6.4     rJava_1.0-11          vctrs_0.6.5          
 [7] tools_4.3.1           generics_0.1.3        fansi_1.0.6          
[10] RSQLite_2.3.4         blob_1.2.4            pkgconfig_2.0.3      
[13] data.table_1.15.0     checkmate_2.3.1       dbplyr_2.4.0         
[16] lifecycle_1.0.4       compiler_4.3.1        stringr_1.5.1        
[19] sunburstR_2.1.8       munsell_0.5.0         fontawesome_0.5.2    
[22] codetools_0.2-19      httpuv_1.6.13         sass_0.4.8           
[25] htmltools_0.5.7       lazyeval_0.2.2        crayon_1.5.2         
[28] jquerylib_0.1.4       later_1.3.2           pillar_1.9.0         
[31] tidyr_1.3.0           ellipsis_0.3.2        cachem_1.0.8         
[34] mime_0.12             tidyselect_1.2.0      digest_0.6.34        
[37] stringi_1.8.3         purrr_1.0.2           fastmap_1.1.1        
[40] grid_4.3.1            colorspace_2.1-0      cli_3.6.2            
[43] magrittr_2.0.3        utf8_1.2.4            withr_2.5.2          
[46] scales_1.3.0          promises_1.2.1        backports_1.4.1      
[49] bit64_4.0.5           lubridate_1.9.3       timechange_0.2.0     
[52] httr_1.4.7            googleVis_0.7.1       networkD3_0.4        
[55] igraph_1.6.0          bit_4.0.5             CohortGenerator_0.8.1
[58] hms_1.1.3             memoise_2.0.1         SqlRender_1.16.1     
[61] viridisLite_0.4.2     rlang_1.1.3           Rcpp_1.0.12          
[64] xtable_1.8-4          glue_1.7.0            DBI_1.2.1            
[67] ParallelLogger_3.3.0  renv_1.0.3            jsonlite_1.8.8       
[70] Andromeda_0.6.4       R6_2.5.1             

Expected behavior
I should upload my generated zip file to the tool and then be able to see sankey and sunburst diagrams.

Additional context
None

Can report I see this as well, and have been beaten to it by the noble prince.

I see that you are on version 2.6.2, could you try updating to the latest version (2.6.5), it's available on CRAN?