Skip to content

Commit

Permalink
Fix code style
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-knight committed Aug 7, 2024
1 parent d163f9f commit cb5cbcf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/prep.tree.R
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ prep.branch.mode <- function(tree.df) {
split.df <- split(tree.df, tree.df$parent);
n.mode <- sapply(split.df, function(x) length(unique(x$mode)))

if (any(n.mode > 1)){
if (any(n.mode > 1)) {
invalid.parent.str <- paste(names(n.mode[n.mode > 1]), collapse = ' ')
stop(paste('"mode" must be consistent across children sharing a parent.',
'Multiple modes specified for children of:', invalid.parent.str
Expand Down

0 comments on commit cb5cbcf

Please sign in to comment.