]> git.donarmstrong.com Git - ape.git/blobdiff - R/read.nexus.R
final wrap for ape 3.0
[ape.git] / R / read.nexus.R
index cdbc291645823ac923f9db659f034e4194d277f7..642bee7d15c3dcc6c2066a138f7f4e05cfa1534a 100644 (file)
@@ -222,7 +222,7 @@ read.nexus <- function(file, tree.names = NULL)
         if (!translation) n <- length(tr$tip.label)
         ROOT <- n + 1
         if (sum(tr$edge[, 1] == ROOT) == 1 && dim(tr$edge)[1] > 1) {
-            stop(paste("There is apparently two root edges in your file: cannot read tree file.\n  Reading NEXUS file aborted at tree no.", i, sep = ""))
+            stop(paste("The tree has apparently singleton node(s): cannot read tree file.\n  Reading NEXUS file aborted at tree no.", i, sep = ""))
         }
     }
     if (Ntree == 1) {