install.dependencies: Installing All Package Dependencies

Description Usage Arguments Examples

Description

Install all dependencies from a package source directory or package source file.

Usage

1
2
install.dependencies(pkg, dependencies = NA, ..., verbose = TRUE,
  dry.run = FALSE)

Arguments

pkg

package name, path or source file

dependencies

logical indicating whether to also install uninstalled packages which these packages depend on/link to/import/suggest (and so on recursively). Not used if repos = NULL. Can also be a character vector, a subset of c("Depends", "Imports", "LinkingTo", "Suggests", "Enhances").

Only supported if lib is of length one (or missing), so it is unambiguous where to install the dependent packages. If this is not the case it is ignored, with a warning.

The default, NA, means c("Depends", "Imports", "LinkingTo").

TRUE means to use c("Depends", "Imports", "LinkingTo", "Suggests") for pkgs and c("Depends", "Imports", "LinkingTo") for added dependencies: this installs all the packages needed to run pkgs, their examples, tests and vignettes (if the package author specified them correctly).

In all of these, "LinkingTo" is omitted for binary packages.

...

extra arguments passed to install.pkgs.

verbose

verbosity level (logical or numeric)

dry.run

logical that indicates if one should only return the computed set of packages and dependencies to install. If NULL, then it is internally set to TRUE only when there is a mismatch between the requested and the OS binary package types (e.g., if type = 'win.both' on a Unix/Mac host).

Examples

1
2
3
4
5
try( install.dependencies('Matrix', dep = "!", dry.run = TRUE) )
## Not run: 
install.dependencies("mypackage_1.0.tar.gz", dry.run=TRUE)

## End(Not run)

renozao/repotools documentation built on May 27, 2019, 5:53 a.m.