Skip to contents

Removes the hierarchical relationship between a step and its parent, allowing users to reorganize workflows, isolate steps, or prepare steps for reassignment to different parents.

Usage

detachStep(ident, from = pwd())

Arguments

ident

Identifier of the step to detach. Can be the step's path, resource (version) id, full entity (version) id, or short entity (version) id.

from

Root directory for resolving relative paths. Default is pwd().

Value

The updated step resource, returned invisibly after cache invalidation.

References

ics1225

See also

attachStep to create parent-child relationships, loadParentStep and loadChildSteps for navigating hierarchies, getStep for retrieving complete step environments

Examples

if (FALSE) { # \dontrun{
# Detach step from its parent
detachStep(ident = "/improve-tutorial/demoSteps/Step 2")

# Verify the step no longer has a parent
loadParentStep("/improve-tutorial/demoSteps/Step 2")
} # }