restore_node {textAnnotatoR}R 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


[Package textAnnotatoR version 0.1.4 Index]