A basic R code chunk to display the problem in an RMarkdown script:
library(formattable)
df <- data.frame(test = c("\u2265", "\u2264", "==", "equals", "!=", "\u2265=", "\u2264="))
formattable(df)
Doesn't show any of the unicode symbols after I try and knit to html, instead replacing them with =
:
If you write your unicode characters in html format (i.e., replace \u
with &#x
and tag ;
on the back end), then they appear correctly.
library(formattable)
df <- data.frame(test = c("≥", "≤", "==", "equals",
"!=", "≥=", "≤="))
format_table(df)