Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: a_summary.character creates rows with the same name #1090

Open
3 tasks done
clarkliming opened this issue Oct 16, 2023 · 0 comments
Open
3 tasks done

[Bug]: a_summary.character creates rows with the same name #1090

clarkliming opened this issue Oct 16, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@clarkliming
Copy link

What happened?

a_summary

with a very simple example

tern:::a_summary(c('a','b','c'))

we can see that the names of the stats are "n", "a", "b", "c", "a", "b", "c", "n_blq". The names are duplicated, and if this is used in rtables we are not able to use cell_values(tt, row_path) to extract the value because the name is duplicated.

sessionInfo()

R version 4.2.2 Patched (2022-11-10 r83330)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 20.04.5 LTS

Matrix products: default
BLAS:   /usr/lib/x86_64-linux-gnu/blas/libblas.so.3.9.0
LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.9.0

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       

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

other attached packages:
[1] rtables_0.6.4.9003    testthat_3.1.6        magrittr_2.0.3       
[4] formatters_0.5.3.9002

loaded via a namespace (and not attached):
 [1] Rcpp_1.0.10       lattice_0.20-45   tidyr_1.3.0       prettyunits_1.1.1
 [5] ps_1.7.2          rprojroot_2.0.3   digest_0.6.31     utf8_1.2.3       
 [9] mime_0.12         R6_2.5.1          backports_1.4.1   ggplot2_3.4.1    
[13] pillar_1.8.1      Rdpack_2.4        rlang_1.1.1       rstudioapi_0.14  
[17] miniUI_0.1.1.1    callr_3.7.3       urlchecker_1.0.1  Matrix_1.5-3     
[21] checkmate_2.1.0   splines_4.2.2     desc_1.4.2        devtools_2.4.5   
[25] stringr_1.5.0     htmlwidgets_1.6.1 munsell_0.5.0     shiny_1.7.4      
[29] broom_1.0.3       compiler_4.2.2    httpuv_1.6.9      pkgconfig_2.0.3  
[33] pkgbuild_1.4.0    htmltools_0.5.4   tidyselect_1.2.0  tibble_3.2.0     
[37] codetools_0.2-19  fansi_1.0.4       crayon_1.5.2      dplyr_1.1.0      
[41] withr_2.5.0       later_1.3.0       rbibutils_2.2.13  brio_1.1.3       
[45] grid_4.2.2        xtable_1.8-4      gtable_0.3.1      lifecycle_1.0.3  
[49] scales_1.2.1      cli_3.6.0         stringi_1.7.12    cachem_1.0.6     
[53] fs_1.6.1          promises_1.2.0.1  remotes_2.4.2     ellipsis_0.3.2   
[57] vctrs_0.5.2       generics_0.1.3    tools_4.2.2       glue_1.6.2       
[61] purrr_1.0.1       processx_3.8.0    pkgload_1.3.2     fastmap_1.1.0    
[65] survival_3.5-3    colorspace_2.1-0  sessioninfo_1.2.2 memoise_2.0.1    
[69] tern_0.9.1.9002   profvis_0.3.7     usethis_2.1.6

Relevant log output

No response

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.
@clarkliming clarkliming added the bug Something isn't working label Oct 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant