0th

Percentile

Create a graph connecting the tasks within a script

This function create a graph connecting the high-level tasks within a script. The tasks are blocks of code that perform a step in the process. Each code block has input and output variables. These are used to define the associations between the tasks and which tasks are inputs to others and outputs that lead into others.

Keywords
programming
Usage
makeTaskGraph(doc, frags = readScript(doc), info = as(frags, "ScriptInfo"))
Arguments
doc

the name of the script file

frags

the code blocks in the script

info

the meta-information detailing the inputs and outputs of the different code blocks/fragments

Value

An object of class graphNEL-class.

readScript getInputs

Examples
# NOT RUN {
f = system.file("samples", "dual.R", package = "CodeDepends")

if(require(Rgraphviz))
plot(g)

f = system.file("samples", "parallel.R", package = "CodeDepends")

if(require(Rgraphviz))
plot(g)

f = system.file("samples", "disjoint.R", package = "CodeDepends")