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).
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"))
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.
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.
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().
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.
logical. Indicates whether package or help
can be assumed to be character strings.
logical. If it is TRUE, then FALSE or TRUE
is returned to indicate success.
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.
logical. If TRUE, no message confirming package
attaching is printed, and most often,
no errors/warnings are printed if package attaching fails.
logical. If TRUE, additional diagnostics are printed.
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".
logical. Should (reverse) dependencies of (reverse) dependencies (and so on) be included?
logical. If FALSE (default),
regular dependencies are calculated, otherwise reverse dependencies.
library and
require from package base;
package_dependencies from tools;
installed.packages from utils.