Displaying 1 result from an estimated 1 matches for "notgood".
Did you mean:
forgood
2018 Feb 21
1
Checking for a proper "stop" statement...
Folks:
Consider the following two use cases:
goodfunction <- function()
{
stop("Something went wrong..."
}
# vs.
badfunction <- function()
{
notgood()
}
Is there a way for me to test if the functions make use of a stop()
statement WITHOUT modifying the stop() output (assume I can't mod the
function containing the stop() statement itself)? For "goodfunction" the
answer is TRUE, for "badfunction" the answer is FALSE. Bo...