Learn R Programming

roprov (version 0.1.2)

fullprovgraph: Create the full (multiple values per variable) provenance graph for a cache

Description

This generates and returns the full provenance graph reflecting the information stored in the cache or data.frame specified. This can include the same variable multiple times if the corresponding expression is run with different inputs.

Usage

fullprovgraph(provstore)

# S4 method for ProvStoreDF fullprovgraph(provstore)

# S4 method for data.frame fullprovgraph(provstore)

Arguments

provstore

The provenance store data to use when generating the graph

Value

an igraph object representing the provenance graph

Examples

Run this code
# NOT RUN {
library(fastdigest)
code = c("x = 5", "y = x + 1")
outvars = c("x", "y")
outvarhashes = c(fastdigest(5), fastdigest(6))
outvarclasses = rep("numeric", 2)
invars = c("", "x")
invarhashes = c("", fastdigest(5))
invarclasses = c("", "numeric")

ps = ProvStoreDF(outvars = outvars,
                 outvarhashes = outvarhashes,
                 outvarclasses = outvarclasses,
                 invars = invars,
                 invarhashes = invarhashes,
                 invarclasses = invarclasses,
                 code = code,
                 agent = "coolguyorgirl")

plot(fullprovgraph(ps))
# }

Run the code above in your browser using DataLab