I'm trying to use formattable with some values for species, thus, it's very important for column names to be italic; I've tried with the formatter() function, but it only acts on the values, even if I use the "th" node instead of "span"
library(formattable)
make_italic <- formatter("span",
style = "font-style:italic")
formattable(mtcars, list(mpg = make_italic, qsec = make_italic))
In the mtcars, how may I change the names (mpg, cyl, disp,...) to italic?