Learn R Programming

repo.data (version 0.1.5)

package_dependencies: Find current installations

Description

Despite the description minimal requirements find which versions are required due to dependencies.

Usage

package_dependencies(packages = ".", which = "strong")

Value

A data.frame with the name, version required, if only one package requires it it also show the name of the package. NA if not able to collect the data from repositories.

Arguments

packages

Path to a file with a DESCRIPTION file or package's names from a repository.

which

a character 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", character string "strong" (default) for the first three elements of that vector.

Examples

Run this code
pd <- package_dependencies("ggeasy")
head(pd)

Run the code above in your browser using DataLab