[R] error instead of warning?

ivo welch ivowel at gmail.com
Mon Sep 1 01:39:18 CEST 2008


dear R experts---is it possible to ask R to abort with an error
instead of just giving a warning when I am mis-assigning vectors (or
other data structures) that are not compatible?  that is, I would like

1: In matrix(value, n, p) ... :
  data length [12] is not a sub-multiple or multiple of the number of
columns [11]

to force an error.  are there any other warnings() that are really
more programming errors that I could also convert into an abort?

sincerely,

/iaw



More information about the R-help mailing list