Learn R Programming

pkgGraphR (version 0.3.1)

buildPackageGraph: 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)

Value

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

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

Examples

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

Run the code above in your browser using DataLab