package_sources: Collect information on package sources

Description Usage Arguments

View source: R/package_sources.R

Description

Collect information on package sources

Usage

1
2
3
package_sources(cran = NULL, repos = NULL, github = NULL,
  local = NULL, expire = NULL, local_drat = NULL, data = NULL,
  spec = NULL)

Arguments

cran

A single URL for the CRAN repo to use. If NULL, then this will use the rstudio mirror.

repos

A character vector of additional repositories to use. Repositories of the form drat://username will be translated to a drat repository hosted on github (e.g., https://username.github.io/drat)

github

A vector of github package specifications (e.g., username/password). The full syntax as implemented in parse_github_repo_spec is supported (packages in subdirectories, or referencing a particular branch, commit or tag).

local

A character vector of local files to include. Can be directories or built packages (source or binary)

expire

Optional period, in days, to expire the local copy of the package. If specified, then if a package was downloaded more thanexpire days ago when the local copy is checked, a new version will be downloaded. Can be a fractional value (e.g., expire = 0.04 for an expiry of around an hour).

local_drat

Optional location to cache downloaded packages, when github or local packages are used. If not given, this can be set at any time by setting the local_drat element of the returned element. If not given by the time that the packages need to be downloaded then a session-specific temporary directory will be used.

data

An object of class package_sources_list, created by running the as_list() method of a package_sources object. This is useful for serialisation without saving references to provisionr.

spec

Raw entries of the form <type>::<user>/<repo>...


richfitz/provisionr documentation built on Sept. 9, 2020, 8:46 p.m.