as_icon {shidashi} | R Documentation |
Convert characters, shiny icons into 'fontawesome' 4
Description
Convert characters, shiny icons into 'fontawesome' 4
Usage
as_icon(icon = NULL, class = "fas")
Arguments
icon |
character or |
class |
icon class; change this when you are using 'fontawesome'
professional version. The choices are |
Value
'HTML' tag
Examples
if(interactive()){
as_icon("bookmark", class = "far")
as_icon("bookmark", class = "fas")
# no icon
as_icon(NULL)
}
[Package shidashi version 0.1.6 Index]