Skip to contents

Inspect undo/redo availability and current snapshot in a spec_history

Usage

history_can_undo(hist)

history_can_redo(hist)

history_current(hist)

Arguments

hist

A spec_history object.

Value

Logical scalar for history_can_undo() and history_can_redo(), or the current spec_ir (or NULL) for history_current().

Examples

h <- spec_history(new_spec_ir())
history_can_undo(h)
#> [1] FALSE
history_can_redo(h)
#> [1] FALSE
history_current(h)$hierarchy$n_obs
#> [1] 200