Skip to content

Commit 3a3c93a

Browse files
committed
isTRUE(log)
for consistency
1 parent 6c90b7c commit 3a3c93a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

R/stability.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ GraphGeodesic <- function(x, nTip = length(x$tip.label), log = FALSE,
2626
n_edge = as.integer(dim(edge)[1]))
2727

2828
# Return:
29-
if (log) {
29+
if (isTRUE(log)) {
3030
if (asMatrix) {
3131
matrix(ret, nTip)
3232
} else {
@@ -128,7 +128,7 @@ TipInstability <- function(trees, log = TRUE, average = "mean",
128128
trees <- c(trees[[1]],
129129
structure(lapply(trees[-1], RenumberTips, labels),
130130
class = "multiPhylo"))
131-
nTip <- nTip[1]
131+
nTip <- nTip[[1]]
132132
} else {
133133
nTip <- NTip(trees[[1]])
134134
}

0 commit comments

Comments
 (0)