Re: [R-sig-phylo] exponential time with write.tree

2019-01-23 Thread Jérémie Bardin
Thanks a lot Emmanuel. It works perfectly. Amitiés, Jérémie. Jérémie Bardin, Dr. CR2P - Centre de Recherche en Paléontologie - ParisSorbonne Université - MNHN - CNRS Site Jussieu, Tour 46-56, 5°et. 4 place Jussieu, 75252 Paris Cedex 05 tel. +331.44.27.51.77. jeremie.bar...@upmc.fr /

Re: [R-sig-phylo] exponential time with write.tree

2019-01-23 Thread Emmanuel Paradis
Hi Jérémie, You're correct: the current version of write.tree() scales with n^2. This seems to be related to calling the generic '[[' operator. You can modify the code with the usual fix(write.tree), then insert these two lines: phy <- .uncompressTipLabel(phy) class(phy) <- NULL