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

______________________________________________
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help

Reply via email to