From 13b6f4a6c1934a8747e8d581bc7f43a193a16fbb Mon Sep 17 00:00:00 2001 From: egouldo Date: Wed, 4 Sep 2024 20:01:35 +1000 Subject: [PATCH] bug: switch to `fmt_icon()` instead of `gtExtras::gt_fa_column()` see https://forum.posit.co/t/fontawesome-icons-not-rendering-correctly-in-gt-fa-column/182726/2 --- supp_mat/SM2_EffectSizeAnalysis.qmd | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/supp_mat/SM2_EffectSizeAnalysis.qmd b/supp_mat/SM2_EffectSizeAnalysis.qmd index 7640506..8238e35 100644 --- a/supp_mat/SM2_EffectSizeAnalysis.qmd +++ b/supp_mat/SM2_EffectSizeAnalysis.qmd @@ -693,7 +693,7 @@ Where $\mu$ is the population parameter taken from our original dataset for vari ```{r} #| label: tbl-constructed-var-exclusions - +#| tbl-caption: "Analyst-constructed variables and whether they are included in our meta-analyses of out-of-sample predictions, $y\\_i$" all_constructed_vars %>% semi_join(ManyEcoEvo_constructed_vars, by) %>% mutate(included_in_yi = TRUE) %>% @@ -705,13 +705,13 @@ all_constructed_vars %>% } ) %>% dplyr::mutate(included_in_yi = case_match(included_in_yi, TRUE ~ "check", FALSE ~ "xmark" )) %>% - gt::gt(caption = gt::md("Analyst-constructed variables and whether they are included in our meta-analyses of out-of-sample predictions, $y\\_i$")) %>% + group_by(dataset) %>% + gt::gt() %>% gt::cols_label(response_variable_name = "Constructed Variable", included_in_yi = gt::md("Included in $y\\_i$ meta-analysis?")) %>% - gtExtras::gt_fa_column(included_in_yi) %>% - gt::cols_hide("dataset") %>% - gt::as_raw_html() - + gt::fmt_icon(included_in_yi) %>% + gt::tab_style(style = cell_text(style = "italic",transform = "capitalize"), + locations = cells_row_groups(groups = "eucalyptus")) ``` #### Non-truncated $y_{i}$ meta-analysis forest plot