]> git.donarmstrong.com Git - ape.git/blobdiff - R/read.tree.R
final wrap for ape 3.0
[ape.git] / R / read.tree.R
index 87ae296e8f7d9fb33ff7843cb60c27fc15a062f6..cba51d10fd7a5641568b12480006bc6c7635078e 100644 (file)
@@ -158,7 +158,7 @@ read.tree <- function(file = "", text = NULL, tree.names = NULL, skip = 0,
         ## is a bifurcation at the root
         ROOT <- length(obj[[i]]$tip.label) + 1
         if(sum(obj[[i]]$edge[, 1] == ROOT) == 1 && dim(obj[[i]]$edge)[1] > 1)
-            stop(paste("There is apparently two root edges in your file: cannot read tree file.\n  Reading Newick file aborted at tree no.", i, sep = ""))
+            stop(paste("The tree has apparently singleton node(s): cannot read tree file.\n  Reading Newick file aborted at tree no.", i))
     }
     if (Ntree == 1 && !keep.multi) obj <- obj[[1]] else {
         if (!is.null(tree.names)) names(obj) <- tree.names