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.

deepdep(
  package,
  depth = 1,
  downloads = FALSE,
  bioc = FALSE,
  local = FALSE,
  dependency_type = c("Depends", "Imports")
)

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. Possibilities are: "Imports", "Depends", "Suggests", "Enhances", "LinkingTo". By default it's "Depends", "Imports".

Value

An object of deepdep class.

See also

Examples

library(deepdep) dd_downloads <- deepdep("ggplot2") head(dd_downloads)
#> origin name version type origin_level dest_level #> 1 ggplot2 digest <NA> Imports 0 1 #> 2 ggplot2 glue <NA> Imports 0 1 #> 3 ggplot2 gtable >= 0.1.1 Imports 0 1 #> 4 ggplot2 isoband <NA> Imports 0 1 #> 5 ggplot2 MASS <NA> Imports 0 1 #> 6 ggplot2 mgcv <NA> Imports 0 1
# \donttest{ dd_2 <- deepdep("ggplot2", depth = 2, downloads = TRUE) plot_dependencies(dd_2, "circular")
dd_local <- deepdep("deepdep", local = TRUE) plot_dependencies(dd_local)
# }