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

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

Matthew K. Lau

Examples

if (FALSE) { script <- system.file("example", "simple_script.R", package = "Rclean") simple.script <- readScript(script) code_graph(simple.script) }