[-VIRUS-] Re: [R] assert( condition )
Roger D. Peng
rpeng at jhsph.edu
Tue Apr 6 21:27:57 CEST 2004
I often use stopifnot().
ivo welch wrote:
> hi R wizards: I think it would be a good idea for me to use basic
> argument checking (type, length) in function calls via an assert() like
> function. How do people usually do this? Should I define my own
> "assert()" function (or are there some predefined assertions)? If I
> write my own assert, is it possible to print out the R internal call
> stack? thanks.
> (?assert and google "assert R" and V+D index do not point me the right
> regards, /iaw
> R-help at stat.math.ethz.ch mailing list
> PLEASE do read the posting guide!
More information about the R-help