A Time-Travelling Debugger

Uses provenance post-execution to help the user understand and debug their script by providing functions to look at intermediate steps and data values, their forwards and backwards lineage, and to understand the steps leading up to warning and error messages. 'provDebugR' uses provenance produced by 'rdtLite' (available on CRAN), stored in PROV-JSON format.


provDebugR

A debugging tool that leverages provenance to provide handy information about R scripts to assist in writing them.

For a more in-depth description of the functions available in this package please refer to the Wiki.

Installation

Version 3.5.0 or later of R is required.

Devtools is needed for installation:

install.packages("devtools")

Installation of all required packages (can be copied and pasted):

install.packages("provParseR")
install.packages("provGraphR")
install.packages("rdtLite")
devtools::install_github("End-to-end-provenance/provDebugR")

provDebugR also imports:

  • httr
  • igraph
  • jsonlite
  • methods
  • testthat
  • textutils

Once installed, load provDebugR by calling:

library("provDebugR")

Usage

To initialise the debugger with a script, call:

prov.debug.run("scriptName.R", snapshot.size = 100)

Alternatively, if you just called rdtLite's prov.run function, you can call:

prov.debug()

Lastly, if you have the PROV-JSON provenance file, you can also call:

prov.debug.file("provJsonFileName.json")

Once the debugger has been initialised, the rest of the functions the package provides can be used.

To find out more about what each function does, please refer to the Wiki.

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("provDebugR")

1.0.1 by Barbara Lerner, 5 years ago


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


Authors: Orenna Brand [aut] , Elizabeth Fong [aut] , Barbara Lerner [cre] , Rose Sheehan [aut] , Joseph Wonsil [aut] , Emery Boose [aut]


Documentation:   PDF Manual  


GPL-3 license


Imports httr, jsonlite, provGraphR, provParseR, textutils

Suggests knitr, rdtLite, rdt, rmarkdown, testthat


See at CRAN