Description Usage Arguments Value Examples
Statically analyze code to determine implicit dependencies
1 2 3 4 5 6 7 8 9 10 | inferGraph(code, ...)
## S4 method for signature 'character'
inferGraph(code, ...)
## S4 method for signature 'language'
inferGraph(code, ...)
## S4 method for signature 'expression'
inferGraph(code, ...)
|
code |
the file path to a script or an object that can be coerced to an expression. |
... |
additional arguments to methods |
object of class DependGraph
1 2 3 4 5 6 7 8 9 | g <- inferGraph(parse(text = "
a <- 1
b <- 2
c <- a + b
d <- b * c
"))
ig <- as(g, "igraph")
plot(ig)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.