remotes (version 1.0.0)

install_deps: Install package dependencies if needed.

Description

Install package dependencies if needed.

Usage

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.

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. If "both", will switch automatically to "binary" to avoid interactive prompts during package installation.

...

additional arguments passed to install.packages.

upgrade

If TRUE, also upgrade any of out date dependencies.

quiet

If TRUE, suppress output.

Examples

Run this code
# NOT RUN {
install_deps(".")
# }

Run the code above in your browser using DataCamp Workspace