makeTaskGraph | R Documentation |
This function creates 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.
makeTaskGraph(doc, frags = readScript(doc), info = as(frags, "ScriptInfo"))
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 |
An object of class graphNEL-class
.
Duncan Temple Lang
readScript
getInputs
## Not run:
f = system.file("samples", "dual.R", package = "CodeDepends")
g = makeTaskGraph(f)
if(require(Rgraphviz))
plot(g)
f = system.file("samples", "parallel.R", package = "CodeDepends")
g = makeTaskGraph(f)
if(require(Rgraphviz))
plot(g)
f = system.file("samples", "disjoint.R", package = "CodeDepends")
g = makeTaskGraph(f)
if(require(Rgraphviz))
plot(g)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.