Find Appropriate Paths in CRAN-like Repositories

Share:

Description

contrib.url adds the appropriate type-specific path within a repository to each URL in repos.

Usage

1
contrib.url(repos, type = getOption("pkgType"))

Arguments

repos

character vector, the base URL(s) of the repositories to use.

type

character string, indicating which type of packages: see install.packages.

Details

If type = "both" this will use the source repository.

Value

A character vector of the same length as repos.

See Also

setRepositories to set options("repos"), the most common value used for argument repos.

available.packages, download.packages, install.packages.

The ‘R Installation and Administration’ manual for how to set up a repository.

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.