When using gt_theme function inside quarto/rmardown html knitted document, adding theme to each table increases final html file size about 7 megabytes. Without theme the below example woul be around 1 MB, theme adds 7MB. Therefore longer reports (with tens of tables) would be rendered unportable.
Reproducible example
library(dplyr)
#>
#> Attaching package: 'dplyr'
#> The following objects are masked from 'package:stats':
#>
#> filter, lag
#> The following objects are masked from 'package:base':
#>
#> intersect, setdiff, setequal, union
library(gt)
library(gtExtras)
tibble(
Column1 = c(1, 2, 3, 4, 5),
Column2 = c('A', 'B', 'C', 'D', 'E'),
Column3 = c(TRUE, FALSE, TRUE, FALSE, TRUE)) %>%
gt() %>%
gt_theme_nytimes()
Description
When using gt_theme function inside quarto/rmardown html knitted document, adding theme to each table increases final html file size about 7 megabytes. Without theme the below example woul be around 1 MB, theme adds 7MB. Therefore longer reports (with tens of tables) would be rendered unportable.
Reproducible example
Created on 2024-10-08 with reprex v2.1.1