code_graph: code_graph - A network diagram of computational dependencies.

View source: R/code_graph.R

code_graphR Documentation

code_graph — A network diagram of computational dependencies.

Description

Plot the dependencies among functions and objects for a given script.

Usage

code_graph(script, pdf_file)

Arguments

script

Script object from CodeDepends or a file path to a script.

pdf_file

Path to output PDF of the code graph.

Value

A network plot.

Author(s)

Matthew K. Lau

Examples

## Not run: 
script <- system.file("example", "simple_script.R", package = "Rclean")
simple.script <- readScript(script)
code_graph(simple.script)

## End(Not run)

MKLau/Rclean documentation built on Dec. 6, 2022, 7:18 p.m.