Convert characters, shiny icons into 'fontawesome' 4
Arguments
- icon
character or
icon- class
icon class; change this when you are using 'fontawesome' professional version. The choices are
'fa'(compatible),'fas'(strong),'far'(regular),'fal'(light), and'fad'(duo-tone).
Examples
if(interactive()){
as_icon("bookmark", class = "far")
as_icon("bookmark", class = "fas")
# no icon
as_icon(NULL)
}