powered by
TBR Warning Print a warning and return given tree
SPRWarning(parent, child, error)TBRWarning(parent, child, error)
TBRWarning(parent, child, error)
error message to report
tree to return
the tree specified in tree
SPRWarning: for SPR rearrangements
SPRWarning
# NOT RUN { testFunction <- function (tree) { return(TBRWarning(parent, child, 'Message text')) } # } # NOT RUN { testFunction(0) # will trigger warning # } # NOT RUN { # }
Run the code above in your browser using DataLab