Learn R Programming

adapr (version 2.0.0)

getDepSubgraph: Produces subgraph of dependencies of R script

Description

Produces subgraph of dependencies of R script

Usage

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

Arguments

rscript

R script name

project.id

Project graph

plotTF

logical to plot or not

Value

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

Details

Only needs one or the other argument.

Examples

Run this code
# NOT RUN {
 subGraph <- scriptSubgraph(project.id=getProject())
 plot(subGraph[[1]],vertex.label=basename(igraph::V(subGraph[[1]])$name),layout=subGraph[[2]])
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab