Pulls Information from Prov.Json Files

R functions to access provenance information collected by 'rdt' or 'rdtLite'. The information is stored inside a 'ProvInfo' object and can be accessed through a collection of functions that will return the requested data. The exact format of the JSON created by 'rdt' and 'rdtLite' is described in < https://github.com/End-to-end-provenance/ExtendedProvJson>.


Travis-CI Build Status Given prov JSON files, returns details of the user's computing environment, including versions of all libraries used. For R scripts.

This package requires the use of the provenance collection tool RDataTracker.

Installation

Install from GitHub:

# install.packages("devtools")
devtools::install_github("ProvTools/provParseR")

Once installed, load the package:

library("provParseR")

Usage

Once you've generated a prov.JSON with RDataTracker and set the working directory, enter the following command, where ddg.json is a PROV-JSON file in the working directory:

prov.parse("ddg.json")

provParse will parse the JSON file, generating data frames for each type of node and edge in the DDG, and for the computing environment, libraries used, and source scripts used. To access each data frame, enter the respective command:

# Returns a list of all the data frames possible through the access functions
get.all.df()
 
# Computing environment
get.environment()
 
# Libraries used
get.libs()
 
# Source scripts used
get.scripts()
 
# Procedure nodes
get.proc.nodes()
 
# Data nodes
get.data.nodes()
 
# Function nodes
get.func.nodes()
 
# Procedure-to-procedure edges
get.proc.proc()
 
# Data-to-procedure edges
get.data.proc()
 
# Procedure-to-data edges
get.proc.data()
 
# Function-to-procedure edges
get.func.proc()
 
# Function-library edges
get.func.lib()

News

provParseR 0.1.1

  • Updated to correspond to the current JSON Prov format

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("provParseR")

0.1.1 by Barbara Lerner, 4 months ago


https://github.com/End-to-end-provenance


Browse source code at https://github.com/cran/provParseR


Authors: Orenna Brand [aut] , Joseph Wonsil [aut] , Emery Boose [aut] , Barbara Lerner [cre]


Documentation:   PDF Manual  


GPL-3 | file LICENSE license


Imports jsonlite, methods

Suggests testthat


Imported by provSummarizeR.


See at CRAN