use_favicon {golem} | R 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 |
method |
Method to be used for downloading files, 'curl' is default see |
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")
}
[Package golem version 0.4.1 Index]