我正在遵循此说明:链接
我有这个代码:
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!")
我得到了这个结果:
“错误:未找到 FontAwesome。通过以下方式安装:https ://github.com/FortAwesome/Font-Awesome/tree/master/fonts ”
我还使用以下代码检查我是否安装了 Font Awesome:
# check that Font Awesome is imported
fonts()[grep("Awesome", fonts())]
我收到了这条消息: “ 1 “Font Awesome 5 Brands”“Font Awesome 5 Free”“