o zoom() shuffled tips with unrooted trees.
+ o write.nexus() failed to write correctly trees with a "TipLabel"
+ attribute.
+
CHANGES IN APE VERSION 2.3-2
-## write.nexus.R (2006-09-09)
+## write.nexus.R (2009-07-27)
## Write Tree File in Nexus Format
-## Copyright 2003-2006 Emmanuel Paradis
+## Copyright 2003-2009 Emmanuel Paradis
## This file is part of the R-package `ape'.
## See the file ../COPYING for licensing issues.
if (length(obj) == 1) {
if (class(obj[[1]]) == "phylo") ntree <- 1
else {
- obj <- unlist(obj, recursive = FALSE)
+ obj <- obj[[1]] # NOT use unlist()
ntree <- length(obj)
}
} else ntree <- length(obj)