svglite
svglite copied to clipboard
saving glyph paths instead of letters => huge file size
I'm following the documentation here. I am getting huge file size compared to promised in the docs, and when I inspect it, I see that all glyphs are saved as paths
I am on MacOS Monterrey 12.6.3 (21G419), R version 4.2.1 (2022-06-23)
What is the result of sessionInfo()
and did you run this in R --vanilla
? This does not duplicate for me in R 4.2.3 with the development version of {svglite}
running under Ubuntu 22.04.2 LTS...
so this seems to work under Rscript, but fail in Rstudio
This produces huge file (Rstudio):
R version 4.2.1 (2022-06-23)
Platform: aarch64-apple-darwin20 (64-bit)
Running under: macOS Monterey 12.6.3
Matrix products: default
LAPACK: /Library/Frameworks/R.framework/Versions/4.2-arm64/Resources/lib/libRlapack.dylib
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] svglite_2.1.0 systemfonts_1.0.4 emojifont_0.5.5 rmcorr_0.5.4 ggraph_2.1.0 forcats_0.5.1
[7] stringr_1.5.0 dplyr_1.1.0 purrr_1.0.1 readr_2.1.2 tidyr_1.3.0 tibble_3.1.8
[13] ggplot2_3.4.1 tidyverse_1.3.2 vroom_1.5.7
This works (R):
sessionInfo()
R version 4.2.1 (2022-06-23)
Platform: aarch64-apple-darwin20 (64-bit)
Running under: macOS Monterey 12.6.3
Matrix products: default
BLAS: /Library/Frameworks/R.framework/Versions/4.2-arm64/Resources/lib/libRblas.0.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/4.2-arm64/Resources/lib/libRlapack.dylib
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] systemfonts_1.0.4 vroom_1.5.7 forcats_0.5.1 stringr_1.5.0
[5] dplyr_1.1.0 purrr_1.0.1 readr_2.1.2 tidyr_1.3.0
[9] tibble_3.1.8 ggplot2_3.4.1 tidyverse_1.3.2
I notice in your RStudio sessionInfo()
you have {emojifont}
loaded which uses {showtext}
which converts text into paths. What happens in RStudio if you don't have {emojifont}
and/or {showtext}
loaded i.e. in the RStudio equivalent of a "vanilla" R session.