buildPackageGraph {pkgGraphR}R Documentation

Build a graph of an R package or directory

Description

Generates the Nodes and Edges of a set of functions in an R package or directory

Usage

buildPackageGraph(x, unique.edges = TRUE, only.connected = FALSE)

Arguments

x

A character string specifying the path to an R package or directory

unique.edges

Logical indicating whether there should be only a single edge between nodes. DEFAULT: TRUE

only.connected

Logical indicating whether unconnected nodes should be removed from the graph. DEFAULT: FALSE

Value

A named list of length 2 containing a character vector of nodes and a data.frame of edges.

Examples

system.file("extdata", package = "pkgGraphR") |> 
    buildPackageGraph()


[Package pkgGraphR version 0.2.0 Index]