When calling get.descendants() if the node is not matched, the following error happens.
Error in sprintf("Node '%s' not found in tree") : too few arguments
This is due to a small typo when calling sprintf().
stop(sprintf("Node '%s' not found in tree"), node)
It should be
stop(sprintf("Node '%s' not found in tree", node))
When calling
get.descendants()
if the node is not matched, the following error happens.Error in sprintf("Node '%s' not found in tree") : too few arguments
This is due to a small typo when calling
sprintf()
.stop(sprintf("Node '%s' not found in tree"), node)
It should be
stop(sprintf("Node '%s' not found in tree", node))