View source: R/faviconPlease.R
| faviconPlease | R Documentation |
faviconPlease() first applies the favicon functions specified in the
argument functions. If these do not find a favicon URL, then it
applies the fallback function specified by the argument fallback.
faviconPlease(
links,
functions = list(faviconLink, faviconIco),
fallback = faviconDuckDuckGo
)
links |
Character vector of URLs |
functions |
List of functions for finding URL to a website's favicon. They are tried in order until a URL is found. If no URL is found, the fallback is applied. |
fallback |
Either a function or a single character vector. It is applied when none of the supplied functions are able to find a favicon. |
Character vector with URLs to the favicons for the websites specified
in the input argument links. The URLs are generated from one of the
favicon functions specified in the input argument functions. If a
favicon URL cannot be identified, then the returned URL is generated by the
input argument fallback.
faviconLink,
faviconIco,
faviconDuckDuckGo,
faviconGoogle
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.