# NOT RUN {
haltifnot(1==1, all.equal(pi, 3.14159265), 1<2) ## all TRUE
m <- matrix(c(1,3,3,1), 2,2)
haltifnot(m == t(m), diag(m) == rep(1,2)) ## all TRUE
op <- options(error = expression(NULL))
# "disable stop(.)" << Use with CARE! >>
haltifnot(all.equal(pi, 3.141593), 2 < 2, all(1:10 < 12), "a" < "b",
msg="not all conditions are TRUE. Please contact the devleoper")
options(op)# revert to previous error handler
# }
Run the code above in your browser using DataLab