Re: [R] Checking for a proper "stop" statement...

2018-02-21 Thread Duncan Murdoch
On 21/02/2018 4:28 PM, Jonathan Greenberg wrote: 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

[R] Checking for a proper "stop" statement...

2018-02-21 Thread Jonathan Greenberg
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