Learn R Programming

recordr (version 1.0.3)

recordr: Record, review and publish data provenance.

Description

The R package recordr provides methods to easily record data provenance about R script executions, such as the files that were read and written by the script, along with information about the execution, such as start time end time, the R modules loaded during the execution, etc. This provenance information along with any files created by the script can then be combined into a data package and uploaded to a data repository such as DataONE.

Arguments

Classes

  • Recordr: A class containing methods to record, review and publish data provenance

Details

An overview of the recordr package is available with the R command: 'vignette("recordr_overview")'.

Examples

Run this code
## Not run: 
# # This example shows how to record provenance for an R script and view the recorded 
# information.
# library(recordr)
# rc <- new("Recordr")
# record(rc, "./myScript.R", tag="Simple script recording #1")
# listRuns(rc, tag="recording #1")
# viewRuns(rc, tag="recording #1")
# ## End(Not run)

Run the code above in your browser using DataLab