getDepSubgraph: Produces subgraph of dependencies of R script

Description Usage Arguments Details Value Examples

Description

Produces subgraph of dependencies of R script

Usage

1
getDepSubgraph(rscript, project.id = getProject(), plotTF = FALSE)

Arguments

rscript

R script name

project.id

Project graph

plotTF

logical to plot or not

Details

Only needs one or the other argument.

Value

list with subgraph in igraph format, data frame format, and layout for plottingss

Examples

1
2
3
4
5
## Not run: 
 subGraph <- scriptSubgraph(project.id=getProject())
 plot(subGraph[[1]],vertex.label=basename(igraph::V(subGraph[[1]])$name),layout=subGraph[[2]])

## End(Not run) 

adapr documentation built on May 1, 2019, 7:05 p.m.