Skip to contents

Establishes a hierarchical parent-child relationship between steps by attaching a step to another step that serves as its parent.

Usage

attachStep(ident, parent, from = pwd())

Arguments

ident

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

parent

Identifier of the step that will become the parent. 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

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

Examples

if (FALSE) { # \dontrun{
# Attach Step 2 as a child of Step 1
attachStep(
  ident = "/improve-tutorial/demoSteps/Step 2",
  parent = "/improve-tutorial/demoSteps/Step 1"
)
} # }