startRecord: Begin recording provenance for an R session.

Description Usage Arguments Details Value See Also Examples

Description

This method starts the recording process and the method endRecord() completes it.

Usage

1
2
3
4
5
startRecord(recordr, ...)

## S4 method for signature 'Recordr'
startRecord(recordr, tag = as.character(NA),
  .file = as.character(NA), .console = TRUE, log = as.character(NA))

Arguments

recordr

a Recordr instance

...

additional parameters

tag

a string that is associated with this run

.file

the filename for the script to run (only used internally when startRecord() is called from record())

.console

a logical argument that is used internally by the recordr package

log

A character string. If .console=TRUE, the file to log console commands to. The default is 'console.log'.

Details

The startRecord() method can be called from the R console to begin a recording session during which provenance is captured for any functions that are inspected by Recordr. This recordr session can be closed by calling the endRecord() method. When the record() function is called to record a script, the startRecord() function is called automatically.

Value

execution identifier that uniquely identifies this recorded session

See Also

Recordr class description

Examples

1
2
3
4
5
6
7
## Not run: 
rc <- new("Recordr")
startRecord(rc, tag="my first console run")
x <- read.csv(file="./test.csv")
runIdentifier <- endRecord(rc)

## End(Not run)

NCEAS/recordr documentation built on May 7, 2019, 5:59 p.m.