install_deps: Install package dependencies if needed.

Description Usage Arguments Examples

View source: R/install.R

Description

Install package dependencies if needed.

Usage

1
2
3
install_deps(pkgdir = ".", dependencies = NA,
  threads = getOption("Ncpus", 1), repos = getOption("repos"),
  type = getOption("pkgType"), ..., upgrade = TRUE, quiet = FALSE)

Arguments

pkgdir

path to a package directory, or to a package tarball.

dependencies

Which dependencies do you want to check? Can be a character vector (selecting from "Depends", "Imports", "LinkingTo", "Suggests", or "Enhances"), or a logical vector.

TRUE is shorthand for "Depends", "Imports", "LinkingTo" and "Suggests". NA is shorthand for "Depends", "Imports" and "LinkingTo" and is the default. FALSE is shorthand for no dependencies (i.e. just check this package, not its dependencies).

threads

Number of threads to start, passed to install.packages as Ncpus.

repos

A character vector giving repositories to use.

type

Type of package to update.

...

additional arguments passed to install.packages.

upgrade

If TRUE, also upgrade any of out date dependencies.

quiet

If TRUE, suppress output.

Examples

1
## Not run: install_deps(".")

MangoTheCat/install documentation built on Aug. 15, 2018, 11:03 a.m.