Learn R Programming

textAnnotatoR (version 1.0.1)

restore_node: 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)

Value

New Node object with restored data and children

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