deepdep: Acquire the dependencies of the package on any depth level

Description Usage Arguments Value See Also Examples

View source: R/deepdep.R

Description

This function is an ultimate wrapper for get_dependencies. It inherits all of the arguments and allows to recursively search for the dependencies at the higher level of depth.

Usage

1
2
3
4
5
6
7
8
deepdep(
  package,
  depth = 1,
  downloads = FALSE,
  bioc = FALSE,
  local = FALSE,
  dependency_type = "strong"
)

Arguments

package

A character. Name of the package that is on CRAN, Bioconductor repository or locally installed. See bioc and local arguments.

depth

An integer. Maximum depth level of the dependency. By default it's 1.

downloads

A logical. If TRUE add dependency downloads data. By default it's FALSE.

bioc

A logical value. If TRUE the Bioconductor dependencies data will be taken from the Bioconductor repository. For this option to work properly, BiocManager package needs to be installed.

local

A logical value. If TRUE only data of locally installed packages will be used (without API usage).

dependency_type

A character vector. Types of the dependencies that should be sought, a subset of c("Imports", "Depends", "LinkingTo", "Suggests", "Enhances"). Other possibilities are: character string "all", a shorthand for the whole vector; character string "most" for the same vector without "Enhances"; character string "strong" (default) for the first three elements of that vector. Works analogously to package_dependencies.

Value

An object of deepdep class.

See Also

get_dependencies

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
library(deepdep)

dd_downloads <- deepdep("ggplot2")
head(dd_downloads)

dd_2 <- deepdep("ggplot2", depth = 2, downloads = TRUE)
plot_dependencies(dd_2, "circular")

dd_local <- deepdep("deepdep", local = TRUE)
plot_dependencies(dd_local)

deepdep documentation built on Dec. 20, 2021, 5:08 p.m.