inferGraph: Infer Task Dependency Graph

Description Usage Arguments Value Examples

Description

Statically analyze code to determine implicit dependencies

Usage

 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, ...)

Arguments

code

the file path to a script or an object that can be coerced to an expression.

...

additional arguments to methods

Value

object of class DependGraph

Examples

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)

makeParallel documentation built on May 2, 2019, 9:40 a.m.