The cmidrules are wrong here because of a greedy regex inside theme_tt.
It matches the first cmidrule all the way to the end of the second cmidrule (and possible other cmidrules between).
This PR changes the regex to a non-greedy version which fixes the issues.
sessionInfo():
R version 4.4.1 (2024-06-14)
Platform: x86_64-pc-linux-gnu
Running under: Arch Linux
Matrix products: default
BLAS: /usr/lib/libblas.so.3.12.0
LAPACK: /usr/lib/liblapack.so.3.12.0
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
[3] LC_TIME=en_DK.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: Europe/Copenhagen
tzcode source: system (glibc)
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] modelsummary_2.2.0 tinytable_0.4.0.1
loaded via a namespace (and not attached):
[1] compiler_4.4.1 fastmap_1.1.1 generics_0.1.3 cli_3.6.3
[5] htmltools_0.5.8.1 tools_4.4.1 tables_0.9.25 data.table_1.15.4
[9] knitr_1.46 insight_0.20.4.3 digest_0.6.35 xfun_0.43
[13] rlang_1.1.4
When running the script
the resulting table is:
The
cmidrule
s are wrong here because of a greedy regex insidetheme_tt
. It matches the firstcmidrule
all the way to the end of the secondcmidrule
(and possible othercmidrule
s between). This PR changes the regex to a non-greedy version which fixes the issues.sessionInfo():