Learn R Programming

golem (version 0.5.1)

use_favicon: 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" )

Value

Used for side-effects.

An HTML tag.

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

Examples

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

Run the code above in your browser using DataLab