Learn R Programming

recordr (version 1.0.3)

record: Record data provenance for an R script exection

Description

The R script is executed and information about file reads and writes is recorded.

Usage

record(recordr, file, ...)
"record"(recordr, file, tag = "", ...)

Arguments

recordr
a Recordr instance
file
The name of the R script to run and collect provenance information for
...
additional parameters that will be passed to the R "base::source()" function
tag
A string that will be associated with this run

Value

The execution identifier for this run

Details

Input files, the script itself and igenerated files are archived. Information about the execution environment is also saved.

See Also

Recordr class description

Examples

Run this code
## Not run: 
# rc <- new("Recordr")
# executionId <- record(rc, file="myscript.R", tag="first run of myscript.R")
# ## End(Not run)

Run the code above in your browser using DataLab