Skip to content

Commit

Permalink
fix progress bar if not all 105 subtrees are evaluated.
Browse files Browse the repository at this point in the history
  • Loading branch information
KlausVigo committed Oct 18, 2024
1 parent 733184c commit c516cc2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion R/bab.R
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,10 @@ bab <- function(data, tree = NULL, trace = 1, ...) {
.Names = c("edge", "Nnode"), class = "phylo",
order = "postorder")
}
if(trace > 0 && nTips > 6) close(pb)
if(trace > 0 && nTips > 6) {
setTxtProgressBar(pb, 105)
close(pb)
}
attr(result, "TipLabel") <- tree$tip.label
class(result) <- "multiPhylo"
if(add_taxa) result <- addTaxa(result, attr(data, "duplicated"))
Expand Down

0 comments on commit c516cc2

Please sign in to comment.