as_icon | R Documentation |
Convert characters, shiny icons into 'fontawesome' 4
as_icon(icon = NULL, class = "fas")
icon |
character or |
class |
icon class; change this when you are using 'fontawesome'
professional version. The choices are |
'HTML' tag
if(interactive()){
as_icon("bookmark", class = "far")
as_icon("bookmark", class = "fas")
# no icon
as_icon(NULL)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.