Skip to content

blernermhc/provParseR

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EnviR

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

This R package can be used with RDataTracker.

Installation

Install from GitHub:

# install.packages("devtools")
devtools::install_github("oebrand/EnviR")

Once installed, load the package:

library("EnviR")

Usage

Once you've generated a Data Derivation Graph (DDG) 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:

# 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()

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages