query: Query the current history.

Description Usage Arguments Details Value Examples

Description

query_by accepts an arbitrary list of expressions and returns objects and plots for which all evaluate to TRUE.

fullhistory is an equivalent to calling query_by without any conditions.

Usage

1
2
3
query_by(..., .related = "plots")

fullhistory()

Arguments

...

Search conditions.

.related

Included related entities (objects or plots).

Details

The following helper functions can be use in expressions to define conditions:

The following variables can be used in expressions when defining conditions:

Value

query_by return a history graph reduced according to conditions specified in the call.

fullhistory returns the full history graph.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
# search for a specific class
query_by(inherits("lm", "data.frame"))
query_by(lm %in% class || "data.frame" %in% class)

# search for a specific name
query_by(is_named("input", "x", "model"))
query_by(name == "input" || name == "x" || name == "model")

## End(Not run)

lbartnik/experiment documentation built on May 20, 2019, 8:27 p.m.