faviconIco: Check for the existence of favicon.ico

View source: R/faviconPlease.R

faviconIcoR Documentation

Check for the existence of favicon.ico

Description

Check for the existence of favicon.ico

Usage

faviconIco(
  scheme,
  server,
  path,
  method = getOption("download.file.method", default = "auto"),
  extra = getOption("download.file.extra"),
  headers = NULL
)

Arguments

scheme

"http" or "https"

server

The name of the server, e.g. "www.r-project.org"

path

The path to a target file on the server (must start with a forward slash)

method

Method to be used for downloading files. Current download methods are "internal", "wininet" (Windows only) "libcurl", "wget" and "curl", and there is a value "auto": see ‘Details’ and ‘Note’.

The method can also be set through the option "download.file.method": see options().

extra

character vector of additional command-line arguments for the "wget" and "curl" methods.

headers

named character vector of HTTP headers to use in HTTP requests. It is ignored for non-HTTP URLs. The User-Agent header, coming from the HTTPUserAgent option (see options) is used as the first header, automatically.

Value

URL to favicon.ico or "".

See Also

faviconPlease, faviconLink


faviconPlease documentation built on May 7, 2022, 9:05 a.m.