Learn R Programming

pacman (version 0.5.1)

p_depends: Package Dependencies

Description

p_depends - Get CRAN or local package dependencies.

p_depends_reverse - Get CRAN or local reverse dependencies.

Usage

p_depends(package, local = FALSE, character.only = FALSE, ...)

p_depends_reverse(package, local = FALSE, character.only = FALSE, ...)

Arguments

package

Name of the package you want the list of dependencies/reverse dependencies for.

local

logical. If TRUE checks user's local library for existence; if FALSE CRAN for the package.

character.only

logical. If TRUE the input is a variable containing the package name.

other arguments passed to package_dependencies and dependsOnPkgs.

Value

Returns a list of dependencies/reverse dependencies.

See Also

p_info, package_dependencies, dependsOnPkgs

Examples

Run this code
# NOT RUN {
p_depends(lattice)
p_depends_reverse(lattice)

# }
# NOT RUN {
## dependencies from CRAN
p_depends(pacman)
p_depends_reverse("pacman")

## local dependencies 
p_depends(pacman, local = TRUE)
p_depends_reverse("qdap", local = TRUE)
# }

Run the code above in your browser using DataLab