Description
When use_seps = FALSE drop_trailing_dec_mark is ignored.
Reproducible example
gt::gt(mtcars) |>
gt::fmt_number(columns = qsec,
n_sigfig = 2,
drop_trailing_dec_mark = TRUE,
use_seps = FALSE)
# same with
gt::gt(mtcars) |>
gt::fmt_number(columns = qsec,
n_sigfig = 2,
drop_trailing_dec_mark = TRUE,
sep_mark = "")
Expected result
qsec column of mtcars should have been shown without the trailing dot (e.g. 16 17 19 and so on, instead of 16. 17. 19. and so on).
Session info
R version 4.3.3 (2024-02-29 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 11 x64 (build 22631)
Matrix products: default
locale:
[1] LC_COLLATE=Italian_Italy.utf8 LC_CTYPE=Italian_Italy.utf8 LC_MONETARY=Italian_Italy.utf8 LC_NUMERIC=C
[5] LC_TIME=Italian_Italy.utf8
time zone: Europe/Rome
tzcode source: internal
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] digest_0.6.37 R6_2.5.1 fastmap_1.2.0 tidyselect_1.2.1 magrittr_2.0.3 glue_1.8.0 tibble_3.2.1 pkgconfig_2.0.3
[9] gt_0.11.1 htmltools_0.5.8.1 dplyr_1.1.4 generics_0.1.3 lifecycle_1.0.4 xml2_1.3.6 cli_3.6.3 sass_0.4.9
[17] vctrs_0.6.5 withr_3.0.2 pkgload_1.4.0 compiler_4.3.3 rstudioapi_0.17.1 tools_4.3.3 pillar_1.10.1 rlang_1.1.5
Description
When
use_seps = FALSEdrop_trailing_dec_markis ignored.Reproducible example
Expected result
qseccolumn ofmtcarsshould have been shown without the trailing dot (e.g. 16 17 19 and so on, instead of 16. 17. 19. and so on).Session info
R version 4.3.3 (2024-02-29 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 11 x64 (build 22631)
Matrix products: default
locale:
[1] LC_COLLATE=Italian_Italy.utf8 LC_CTYPE=Italian_Italy.utf8 LC_MONETARY=Italian_Italy.utf8 LC_NUMERIC=C
[5] LC_TIME=Italian_Italy.utf8
time zone: Europe/Rome
tzcode source: internal
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] digest_0.6.37 R6_2.5.1 fastmap_1.2.0 tidyselect_1.2.1 magrittr_2.0.3 glue_1.8.0 tibble_3.2.1 pkgconfig_2.0.3
[9] gt_0.11.1 htmltools_0.5.8.1 dplyr_1.1.4 generics_0.1.3 lifecycle_1.0.4 xml2_1.3.6 cli_3.6.3 sass_0.4.9
[17] vctrs_0.6.5 withr_3.0.2 pkgload_1.4.0 compiler_4.3.3 rstudioapi_0.17.1 tools_4.3.3 pillar_1.10.1 rlang_1.1.5