Hey, I have a bunch of data in a .csv file, some strings of which include emojis in them. When I readr::read_csv it, then emojis show up like so \U0001f36b in the console. After I do my wranglings and whatnot and knit an HTML page displaying the table with formattable::formattable, the emojis look like this: <U+0001F36B> .
Here's a reprex to put in an .Rmd and knit as HTML:
library(tidyverse)
tibble(a = 2021, b = 1, c = "Seattle SuperSonics 🍫", d = 0, e = 0, f = 0) %>%
formattable::formattable()