plot_prov: Access git provenance information

Description Usage Arguments Value Examples

Description

This function takes a filename and reads its git log, strips to its most recent commit, adds a line to prov_trackfor this file, and returns a dataframe with git provenance information.

Usage

1
plot_prov(df = .provEnv$script_track, plot_dir = c("TB", "LR")[1])

Arguments

df

A dataframe of a provenance log file (i.e. .provEnv$script_track created by call to script_prov())

plot_dir

Should the graph plot top-to-bottom ('TB') or left-to-right ('LR')? Defaults to 'LR'.

Value

Returns a graph object created by the {DiagrammeR} package. This should be passed to a call to DiagrammeR::render_graph()

Examples

1
2
prov_graph <- plot_prov(.provEnv$script_prov)
DiagrammeR::render_graph(prov_graph)

oharac/provRmd documentation built on June 25, 2019, 9:06 p.m.