Whenever I try to save a {gt} table using the gtsave() function that contains an emoji from the {emoji} package, the saved emoji loses its color. I opened an issue there and was referred to here.
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(emoji)
library(gt)
sample_data<-data.frame(Athlete= c("Alice", "Billy", "Charley"),
Medal= c("Silver", "Gold", "Bronze"))
data_w_emojis<-sample_data %>%
mutate(Medal=emoji::medal(Medal))
data_w_emojis %>% gt() %>% gtsave("No Colored Emojis.png")
This is the unfortunate result of webshot rendering the PNG. It uses PhantomJS which is extremely old and unmaintained. Fortunately, work on the chromote and webshot2 packages is moving along. I’m planning on upgrading gtsave() to take advantage of all that (which would solve this problem as well).
Description
Whenever I try to save a {gt} table using the gtsave() function that contains an emoji from the {emoji} package, the saved emoji loses its color. I opened an issue there and was referred to here.
Reproducible example
Created on 2022-02-11 by the reprex package (v2.0.1)
Expected result
I should receive an output like this.

Session info
The text was updated successfully, but these errors were encountered: