Hi Liam,
This seems to be solved with fix(root) and deleting this line (line 99,
or line 204 in R/root.R in the souce package):
for (j in 1:Nclade) {
and the matching "}" a few lines below.
Many thanks for the report.
All the best,
Emmanuel
Le 13/12/2015 07:58, Liam J. Revell a écrit :
Dear Emmanuel & list.
There seems to be a small bug in the important ape function root in the
latest CRAN release of ape. One of the branch lengths of the rerooted
tree is wrong.
I posted a quick demo of the problem on my blog here:
http://blog.phytools.org/2015/12/apparent-bug-in-important-ape-function.html.
Sorry about this Emmanuel!
All the best, Liam
_______________________________________________
R-sig-phylo mailing list - R-sig-phylo@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-phylo
Searchable archive at http://www.mail-archive.com/r-sig-phylo@r-project.org/