Learn R Programming

TreeSearch (version 0.2.2)

SPRWarning: TBR Warning Print a warning and return given tree

Description

TBR Warning Print a warning and return given tree

Usage

SPRWarning(parent, child, error)

TBRWarning(parent, child, error)

Arguments

error

error message to report

tree

tree to return

Value

the tree specified in tree

Functions

  • SPRWarning: for SPR rearrangements

Examples

Run this code
# 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