fav | R Documentation |
Generate the html necessary to use a Font Awesome icon as the favicon (the icon that appears on browser tabs) for a shiny app or other HTML document.
fav(name, ...)
name |
The name of the Font Awesome icon. This could be as a short name
(e.g., |
... |
Arguments passed on to
|
A shiny.tag
(see htmltools::tag()
) that can be used to embed a
favicon in a shiny app or other HTML document.
html_page <- htmltools::tags$html(
fav("earth-africa", fill = "blue"),
htmltools::tags$body(
htmltools::tags$h1("Hello world!"),
htmltools::tags$p("(on the browser tab)")
)
)
htmltools::html_print(html_page, viewer = utils::browseURL)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.