R/favicon.R

Defines functions favicon

Documented in favicon

#' Add a favicon to your app
#'
#' This function adds the favicon from `ico` to your Shiny app.
#'
#' @param ico path to favicon file
#' @param rel rel HTML attribute
#'
#' @export
#' @importFrom shiny tags
favicon <- function(
  ico = "www/favicon.ico",
  rel="shortcut icon"
){
  tags$head(
    tags$link(
      rel= rel,
      href= ico
    )
  )
}
ThinkR-open/prague documentation built on Nov. 6, 2019, 12:11 a.m.