move_item: Move item in code hierarchy

View source: R/annotate_gui.R

move_itemR Documentation

Move item in code hierarchy

Description

Moves a code or theme to a new location in the hierarchy while preserving its properties and child nodes. Checks for circular references and maintains the integrity of the hierarchy structure.

Usage

move_item(node, item_path, new_parent_path)

Arguments

node

Root node of the hierarchy tree

item_path

Character vector specifying the current path to the item

new_parent_path

Character vector specifying the path to the new parent

Value

Updated node hierarchy with item moved to new location


textAnnotatoR documentation built on April 3, 2025, 7:35 p.m.