Skip to content

[Bug]: tm_t_events sort_criteria not working #1439

@hidyverse

Description

@hidyverse

What happened?

sort_criteria not working within tm_t_events documentation, test shiny application, or in practice.
It is unclear how to use the sort_freq_col option given the lack of documentation and the bug.

sessionInfo()

R version 4.5.0 (2025-04-11)
Platform: x86_64-pc-linux-gnu
Running under: Ubuntu 24.04.2 LTS

Matrix products: default
BLAS:   /opt/R/openval/2025.09.00/4.5.0/lib/R/lib/libRblas.so 
LAPACK: /opt/R/openval/2025.09.00/4.5.0/lib/R/lib/libRlapack.so;  LAPACK version 3.12.1

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

time zone: Etc/UTC
tzcode source: system (glibc)

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

other attached packages:
 [1] dv.manager_2.2.0             dv.explorer.parameter_0.1.9 
 [3] teal.modules.clinical_0.10.0 tern_0.9.8                  
 [5] rtables_0.6.12               magrittr_2.0.3              
 [7] formatters_0.5.11            teal.transform_0.6.0        
 [9] teal_0.16.0                  teal.slice_0.6.0            
[11] teal.data_0.7.0              teal.code_0.6.1             
[13] shiny_1.10.0                 pins_1.4.1                  

loaded via a namespace (and not attached):
  [1] Rdpack_2.6.4          dv.edish_1.3.0        shinyFeedback_0.4.0  
  [4] tern.gee_0.1.5        logger_0.4.0          sandwich_3.1-1       
  [7] rlang_1.1.6           multcomp_1.4-28       compiler_4.5.0       
 [10] vctrs_0.6.5           dv.filter_3.0.3       crayon_1.5.3         
 [13] pkgconfig_2.0.3       fastmap_1.2.0         backports_1.5.0      
 [16] fontawesome_0.5.3     promises_1.3.2        rmarkdown_2.29       
 [19] purrr_1.0.4           xfun_0.52             shinyvalidate_0.1.3  
 [22] cachem_1.1.0          teal.reporter_0.4.0   jsonlite_2.0.0       
 [25] later_1.4.2           broom_1.0.8           R6_2.6.1             
 [28] bslib_0.9.0           stringi_1.8.7         RColorBrewer_1.1-3   
 [31] lubridate_1.9.4       jquerylib_0.1.4       estimability_1.5.1   
 [34] Rcpp_1.0.14           knitr_1.50            zoo_1.8-14           
 [37] dv.teal_2.1.1         teal.logger_0.3.2     base64enc_0.1-3      
 [40] httpuv_1.6.16         Matrix_1.7-2          splines_4.5.0        
 [43] timechange_0.3.0      tidyselect_1.2.1      rstudioapi_0.17.1    
 [46] yaml_2.3.10           codetools_0.2-20      curl_6.2.2           
 [49] sourcetools_0.1.7-1   teal.widgets_0.4.3    lattice_0.22-6       
 [52] tibble_3.2.1          withr_3.0.2           askpass_1.2.1        
 [55] evaluate_1.0.3        dv.listings_4.3.0     survival_3.8-3       
 [58] shinycssloaders_1.1.0 pillar_1.10.2         rsconnect_1.3.4      
 [61] DT_0.33               checkmate_2.3.2       renv_1.1.4           
 [64] shinyjs_2.1.0         generics_0.1.4        ggplot2_3.5.2        
 [67] scales_1.4.0          xtable_1.8-4          shinymeta_0.2.1      
 [70] glue_1.8.0            nestcolor_0.1.3       emmeans_1.11.1       
 [73] tools_4.5.0           dv.clinlines_1.1.2    forcats_1.0.0        
 [76] dv.papo_2.1.1         fs_1.6.6              mvtnorm_1.3-3        
 [79] grid_4.5.0            tidyr_1.3.1           crosstalk_1.2.1      
 [82] rbibutils_2.3         dv.bookman_0.0.2      nlme_3.1-167         
 [85] cli_3.6.5             rappdirs_0.3.3        geepack_1.3.12       
 [88] dplyr_1.1.4           gtable_0.3.6          sass_0.4.10          
 [91] digest_0.6.37         TH.data_1.1-3         htmlwidgets_1.6.4    
 [94] farver_2.1.2          memoise_2.0.1         htmltools_0.5.8.1    
 [97] lifecycle_1.0.4       httr_1.4.7            PKI_0.1-14           
[100] shinyWidgets_0.9.0    mime_0.13             openssl_2.3.2        
[103] MASS_7.3-64

Relevant log output

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

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions