vis_package: Draws a network showing function dependencies within a...

View source: R/vis_package.R

vis_packageR Documentation

Draws a network showing function dependencies within a package

Description

Draws a network showing function dependencies within a package

Usage

vis_package(path = ".", centralGravity = 0.3, external = FALSE,
  physics = FALSE, icons = TRUE)

Arguments

path

where package code resides (this will be changed to download package to a temporary directory)

centralGravity

controls how tightly nodes are pulled into the center of the network; higher numbers are more tight (default = .3)

external

logical, if TRUE will include calls to functions external to the package (default = FALSE)

physics

logical, if TRUE will recalculate network if a node is moved (default = FALSE)

icons

logical, if TRUE will use font awesome icons, set to FALSE for shiny app (default = TRUE)

Author(s)

Joyce Robbins https://github.com/jtr13

Examples

# Package code must exist locally:
vis_package(pkginspector_example("viridisLite"))

ropenscilabs/pkginspector documentation built on May 15, 2022, 5:30 a.m.