favicon: Add a favicon to your shinyapp

Description Usage Arguments Value Examples

View source: R/use_favicon.R

Description

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

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
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

1
2
3
4
if (interactive()){
  use_favicon()
  use_favicon(path='path/to/your/favicon.ico')
}

Example output



golem documentation built on April 17, 2021, 9:06 a.m.