library_with_dep {bazar}R Documentation

Loading/Attaching and listing of packages with dependencies

Description

library_with_dep and require_with_dep behave respectively like library and require, but also load and attach dependent packages (typically packages listed in the Imports field of the DESCRIPTION file).

Usage

library_with_dep(package, help, pos = 2, lib.loc = NULL,
  character.only = FALSE, logical.return = FALSE,
  warn.conflicts = TRUE, quietly = FALSE,
  verbose = getOption("verbose"), which = "Imports",
  recursive = FALSE, reverse = FALSE)

require_with_dep(package, lib.loc = NULL, quietly = FALSE,
  warn.conflicts = TRUE, character.only = FALSE, which = "Imports",
  recursive = FALSE, reverse = FALSE, verbose = getOption("verbose"))

Arguments

package

the name of a package, given as a name or literal character string, or a character string, depending on whether character.only is FALSE (default) or TRUE.

help

the name of a package, given as a name or literal character string, or a character string, depending on whether character.only is FALSE (default) or TRUE.

pos

the position on the search list at which to attach the loaded namespace. Can also be the name of a position on the current search list as given by search().

lib.loc

character. A vector describing the location of R library trees to search through, or NULL. The default value of NULL corresponds to all libraries currently known to .libPaths(). Non-existent library trees are silently ignored.

character.only

logical. Indicates whether package or help can be assumed to be character strings.

logical.return

logical. If it is TRUE, then FALSE or TRUE is returned to indicate success.

warn.conflicts

logical. If TRUE, warnings are printed about conflicts from attaching the new package. A conflict is a function masking a function, or a non-function masking a non-function.

quietly

logical. If TRUE, no message confirming package attaching is printed, and most often, no errors/warnings are printed if package attaching fails.

verbose

logical. If TRUE, additional diagnostics are printed.

which

character. A vector listing the types of dependencies, a subset of c("Depends", "Imports", "LinkingTo", "Suggests", "Enhances"). Character string "all" is shorthand for that vector, character string "most" for the same vector without "Enhances".

recursive

logical. Should (reverse) dependencies of (reverse) dependencies (and so on) be included?

reverse

logical. If FALSE (default), regular dependencies are calculated, otherwise reverse dependencies.

See Also

library and require from package base; package_dependencies from tools; installed.packages from utils.


[Package bazar version 1.0.11 Index]