Closed Yuri05 closed 3 weeks ago
> sessionInfo()
R version 4.2.2 (2022-10-31 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19045)
Matrix products: default
locale:
[1] LC_COLLATE=German_Germany.utf8 LC_CTYPE=German_Germany.utf8 LC_MONETARY=German_Germany.utf8 LC_NUMERIC=C
[5] LC_TIME=German_Germany.utf8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] ospsuite.reportingengine_2.2.367 tlf_1.5.170 ospsuite_12.1.0.9003 rSharp_1.0.0
loaded via a namespace (and not attached):
[1] Rcpp_1.0.11 pillar_1.9.0 compiler_4.2.2 tools_4.2.2 sysfonts_0.8.8 jsonlite_1.8.8
[7] lifecycle_1.0.4 tibble_3.2.1 gtable_0.3.1 pkgconfig_2.0.3 rlang_1.1.3 cli_3.6.2
[13] rstudioapi_0.15.0 commonmark_1.9.0 xfun_0.41 knitr_1.42 withr_3.0.0 dplyr_1.1.4
[19] showtextdb_3.0 stringr_1.5.1 xml2_1.3.3 systemfonts_1.0.4 ospsuite.utils_1.5.37 generics_0.1.3
[25] vctrs_0.6.5 cowplot_1.1.1 gridtext_0.1.5 ggtext_0.1.2 grid_4.2.2 tidyselect_1.2.0
[31] glue_1.7.0 data.table_1.14.8 R6_2.5.1 textshaping_0.3.6 fansi_1.0.4 farver_2.1.1
[37] tidyr_1.3.0 ggplot2_3.5.1 purrr_1.0.2 magrittr_2.0.3 scales_1.3.0 showtext_0.9-6
[43] colorspace_2.1-0 ragg_1.2.5 labeling_0.4.2 utf8_1.2.3 stringi_1.7.12 munsell_0.5.0
[49] markdown_1.12 crayon_1.5.2
@Yuri05
The issue comes from interactions between {showtext}
, {ggtext}
and {cowplot}
in the dual axis plots: https://github.com/wilkelab/cowplot/issues/167
[!NOTE] The fix requires to point the device that is supposed to know where fonts are stored, eg
cowplot::set_null_device("png")
seems to fix the issue.
So I assume cowplot::set_null_device("png")
should be added somewhere during the initialization of the tlf package.
seems to fix the issue. So I assume
cowplot::set_null_device("png")
should be added somewhere during the initialization of the tlf package.
Yes, exactly. I made a PR in tlf to fix the issue. Some tests currently fail, but once they pass. It should be good to merge.
Seems to be fixed?.
Seems to be fixed?.
Yes, it seems so. The Digoxin test in RE-Test-Reports works.
RE: 2.2.367 TLF: 1.5.170
Execute Evaluation/workflow.R Digoxin-Model.zip