is_ancestor: Check if one node is an ancestor of another

View source: R/annotate_gui.R

is_ancestorR Documentation

Check if one node is an ancestor of another

Description

Helper function to check if a node is an ancestor of another node in the code hierarchy, preventing circular references when moving items.

Usage

is_ancestor(potential_ancestor, node)

Arguments

potential_ancestor

Node object to check as potential ancestor

node

Node object to check ancestry against

Value

Logical indicating whether potential_ancestor is an ancestor of node


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