I'm following this instruction : link
and I have this code:
library(waffle)
library(extrafont)
font_import()
# use this if things look odd in RStudio under Windows
loadfonts(device = "win")
waffle(c(50, 30, 15, 5), rows = 5, use_glyph = "fa-car", glyph_size = 40,
title = "Look I made an infographic using R!")
And I get this as result:
"Error: FontAwesome not found. Install via: https://github.com/FortAwesome/Font-Awesome/tree/master/fonts"
I also check if I Font Awesome installed or not with this code:
# check that Font Awesome is imported
fonts()[grep("Awesome", fonts())]
and I received this message: " 1 "Font Awesome 5 Brands" "Font Awesome 5 Free" "