restore_node: Restore a node and its children in the hierarchy

View source: R/annotate_gui.R

restore_nodeR Documentation

Restore a node and its children in the hierarchy

Description

Helper function to recursively restore a node and all its children when moving items in the code hierarchy.

Usage

restore_node(parent, node_data)

Arguments

parent

Parent Node object where the node will be restored

node_data

List containing node data to restore:

  • name: Character string of node name

  • type: Character string specifying node type

  • description: Character string of node description

  • created: POSIXct creation timestamp

  • children: List of child nodes

Value

New Node object with restored data and children


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