notary (version 0.1.0)

download_packages: Download and verify packages

Description

Version of download.file that verifies downloads. All arguments are passed through to utils::download.packages verbatim and the documentation there should be consulted for the meaning of arguments.

Usage

download_packages(pkgs, destdir, available = NULL,
  repos = getOption("repos"), contriburl = contrib.url(repos, type), method,
  type = getOption("pkgType"), ..., pubkey = NULL)

Arguments

pkgs

Character vector of packages to download

destdir

Destination directory

available

Set of available packages, as created by available.packages

repos

Character vector of base URL(s) of repositories (passed through to available.packages.

contriburl

URL(s) of the contrib sections of the repositories

method

Download method

type

character string, indicating which type of packages to install.

...

Additional arguments passed through to utils::download.packages (and from there through to download.file.

pubkey

Public key used to verify the package index