• mem_node_parent() returns a direct parent of node. It is equivalent to node$parents[[i]]$from.

Usage,
mem_node_parent(node, i = NULL)

mem_node_bindings_parent(node)

mem_node_parents(node)

Arguments

node

A memtools node.

i

Which parent to return. If NULL, node must have a single parent otherwise this is an error.

Details

  • mem_node_parents() returns all the parents. It is equivalent to map(node$parents, "from").

  • mem_node_bindings_parent() takes a pairlist as input and returns the environment which holds onto that pairlist, either through its frame or its hash table. If the pairlist is not part of a frame or a hash table, NULL is returned.