Skip to contents

This function creates an object of class pkgdepR, representing the network of function calls between one or more packages.

Usage

deps(pkg, exported_only = FALSE)

Arguments

pkg

A character vector of the environments to explore. Should be on the search path. Cannot be base.

exported_only

Whether to include non-exported functions.

Value

An object of class pkgdepR.

Examples

library(pkgdepR)
deps(pkg = "pkgdepR")
#> 
#> pkgdepR object
#> ------------------------------
#> Packages:    pkgdepR
#> Total nodes: 15
#> Total links: 18
#>   -Between packages: 0
#>   -Within packages:  18
#>     --Between functions: 17
#>     --Self-referential:  1
#>