identify_dependencies: Identify R Package Dependencies of Package

Description Usage Arguments Value

View source: R/identify_dependencies.R

Description

Identifies the R package dependencies of a package and the version numbers of the corresponding packages, that are currently loaded or installed.

Usage

1
2
identify_dependencies(pkg = pkg, dependencies = c("Depends", "Imports",
  "LinkingTo"), base = FALSE, recommended = FALSE, verbose = TRUE)

Arguments

pkg

Path to a package, or within a package.

dependencies

character vector of dependency types to include. Choices are "Depends", "Imports", "LinkingTo", "Suggests", and "Enhances". Defaults to c("Depends", "Imports", "LinkingTo").

base

Logical indicating whether to include dependencies on base packages that are included in the R installation. Defaults to FALSE.

recommended

Logical indicating whether to include dependencies on recommended packages that are included in the R installation. Defaults to FALSE.

verbose

logical should messages be printed or not?

Value

list with dependencies ordered recursively and a data.frame with all R package dependencies with version numbers of the corresponding (1) loaded or (2) installed packages.


dockr documentation built on Dec. 20, 2019, 5:06 p.m.