
Inspect undo/redo availability and current snapshot in a spec_history
Source: R/spec-history.R
history_can_undo.RdInspect undo/redo availability and current snapshot in a spec_history
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