p_depends: Package Dependencies

Description Usage Arguments Value See Also Examples

View source: R/p_depends.R

Description

p_depends - Get CRAN or local package dependencies.

p_depends_reverse - Get CRAN or local reverse dependencies.

Usage

1
2
3
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
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)

## End(Not run)

pacman documentation built on May 2, 2019, 1:08 p.m.