Skip to content

[Bug]: issue with tm_variable_browser: Warning: Error in if: argument is of length zero #936

@donyunardi

Description

@donyunardi

What happened?

A bug happened!

Loading tm_variable_browser for the efficacy app makes the app quit abruptly:

Image

I ran the app.R locally, ensuring I have the latest main.
I don't see this behavior on the efficacy app stable version.

sessionInfo()

r$> sessionInfo()
R version 4.5.1 (2025-06-13)
Platform: aarch64-apple-darwin20
Running under: macOS Sequoia 15.7.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.5-arm64/Resources/lib/libRlapack.dylib;  LAPACK version 3.12.1

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: America/Los_Angeles
tzcode source: internal

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

other attached packages:
 [1] sparkline_2.0                     nestcolor_0.1.3                   random.cdisc.data_0.3.16         
 [4] dplyr_1.1.4                       teal.modules.clinical_0.11.1.9011 tern_0.9.9.9004                  
 [7] rtables_0.6.13.9001               magrittr_2.0.3                    formatters_0.5.11.9002           
[10] teal.modules.general_0.5.0.9009   teal.transform_0.7.0.9000         teal_1.0.0.9018                  
[13] teal.slice_0.7.0.9000             teal.data_0.8.0.9000              teal.code_0.7.0.9001             
[16] shiny_1.11.1                      ggmosaic_0.3.3                    ggplot2_4.0.0                    

loaded via a namespace (and not attached):
 [1] tidyselect_1.2.1         viridisLite_0.4.2        farver_2.1.2             S7_0.2.0                
 [5] fastmap_1.2.0            lazyeval_0.2.2           promises_1.3.2           shinyjs_2.1.0           
 [9] digest_0.6.37            tern.mmrm_0.3.3.9000     timechange_0.3.0         mime_0.13               
[13] lifecycle_1.0.4          survival_3.8-3           compiler_4.5.1           rlang_1.1.6             
[17] bsicons_0.1.2            sass_0.4.10              tools_4.5.1              yaml_2.3.10             
[21] data.table_1.17.4        mmrm_0.3.15.9001         knitr_1.50               labeling_0.4.3          
[25] htmlwidgets_1.6.4        RColorBrewer_1.1-3       withr_3.0.2              purrr_1.0.4             
[29] shinyWidgets_0.9.0       grid_4.5.1               teal.logger_0.4.0.9001   xtable_1.8-4            
[33] scales_1.4.0             cli_3.6.5                generics_0.1.4           httr_1.4.7              
[37] cachem_1.1.0             stringr_1.5.1            splines_4.5.1            parallel_4.5.1          
[41] formatR_1.14             vctrs_0.6.5              Matrix_1.7-3             jsonlite_2.0.0          
[45] ggrepel_0.9.6            crosstalk_1.2.1          teal.widgets_0.5.0.9000  plotly_4.11.0           
[49] fontawesome_0.5.3        tidyr_1.3.1              jquerylib_0.1.4          parallelly_1.44.0       
[53] glue_1.8.0               cowplot_1.1.3            DT_0.33                  lubridate_1.9.4         
[57] stringi_1.8.7            gtable_0.3.6             later_1.4.2              shinycssloaders_1.1.0   
[61] tibble_3.2.1             logger_0.4.0             pillar_1.10.2            htmltools_0.5.8.1       
[65] TMB_1.9.17               R6_2.6.1                 Rdpack_2.6.4             evaluate_1.0.3          
[69] lattice_0.22-7           rbibutils_2.3            backports_1.5.0          memoise_2.0.1           
[73] broom_1.0.8              teal.reporter_0.5.0.9020 httpuv_1.6.16            bslib_0.9.0             
[77] Rcpp_1.0.14              nlme_3.1-168             checkmate_2.3.2          xfun_0.52               
[81] forcats_1.0.0            fs_1.6.6                 pkgconfig_2.0.3

Relevant log output

Warning: Error in if: argument is of length zero
  3: runApp
  2: print.shiny.appobj
  1: <Anonymous>
Warning in process$invoke() :
  ERROR: An error occurred when invoking the ExtendedTask.
Caused by error in `onFulfilled()`:
! 20 | Operation canceled

Code of Conduct

  • I agree to follow this project's Code of Conduct.

Contribution Guidelines

  • I agree to follow this project's Contribution Guidelines.

Security Policy

  • I agree to follow this project's Security Policy.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingcore

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions