Delete a step
cellucid_history_step_delete.RdMove one step to Recently deleted; only the later steps that changed or read what it changed are applied again, and one that no longer applies is kept, flagged.
Arguments
- viewer
A viewer
cellucid_view()orcellucid_serve()returned.- step
A step of the tracker in use, by its id (history_get lists the steps). Text. Required.
Value
A cellucid_action_request, at once and invisibly: the action is sent now, or when the viewer's channel opens.
cellucid_action_result(request) returns its outcome: a list of flagged (Steps that no longer apply), head (The step shown now), journal (Its Recently deleted entry), reapplied (Steps applied again).
Details
The viewer's action history.step.delete (History). It moves the viewer's history, as the person's Undo, Redo or a click on a step does: it makes no step of the history.
When an agent (Claude, ChatGPT) runs it, the viewer asks the person first (deletes-saved); from R it is not asked.
See also
cellucid_act() sends any action by its type, and cellucid_action_result()
collects its answer.
Examples
if (interactive() && requireNamespace("SeuratObject", quietly = TRUE)) {
data("pbmc_small", package = "SeuratObject")
viewer <- cellucid_view(SeuratObject::UpdateSeuratObject(pbmc_small))
request <- cellucid_history_step_delete(viewer, step = "s3")
print(request)
# cellucid_action_result(request) waits for its outcome.
cellucid_stop(viewer)
}