richfitz / diversitree

diversitree: comparative phylogenetic analyses of diversification
http://www.zoology.ubc.ca/prog/diversitree
30 stars 9 forks source link

Minor bug when node is not matched in get.descendants #38

Closed szhan closed 2 years ago

szhan commented 2 years ago

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

richfitz commented 2 years ago

Thanks - this package is not really maintained any more aside from keeping it on CRAN, but this was nice and easy to fix :)