favicon: Add a favicon to your shinyapp

View source: R/use_favicon.R

use_faviconR Documentation

Add a favicon to your shinyapp

Description

This function adds the favicon from ico to your shiny app.

Usage

use_favicon(path, pkg = get_golem_wd(), method = "curl")

remove_favicon(path = "inst/app/www/favicon.ico")

favicon(
  ico = "favicon",
  rel = "shortcut icon",
  resources_path = "www",
  ext = "ico"
)

Arguments

path

Path to your favicon file (.ico or .png)

pkg

Path to the root of the package. Default is get_golem_wd().

method

Method to be used for downloading files, 'curl' is default see utils::download.file().

ico

path to favicon file

rel

rel

resources_path

prefix of the resource path of the app

ext

the extension of the favicon

Value

Used for side-effects.

An HTML tag.

Examples

if (interactive()) {
  use_favicon()
  use_favicon(path = "path/to/your/favicon.ico")
}

golem documentation built on Sept. 11, 2024, 7:54 p.m.