[R] signalCondition

Hadley Wickham h.wickham at auckland.ac.nz
Sat Nov 8 22:18:07 CET 2003


Does signalCondition() only work within try-catch blocks?

I expected:

testSignal <- function() {
    error <- simpleError("An error!")
    signalCondition(error)
}

to do the same thing as

testStop <- function() {
    error <- simpleError("An error!")
    stop(error)
}

but testSignal returns NULL without throwing an error.  Have I 
misunderstood something?

Thanks,

Hadley




More information about the R-help mailing list