Displaying 2 results from an estimated 2 matches for "stpfnt".
Did you mean:
spent
2019 Mar 31
3
stopifnot
...sion signals an error, stopifnot() in R 3.5.x makes its conditionCall() the erroneous expression, but no longer since R 3.6.0.
Is it OK that, for
do.call(stopifnot, list(exprs = expression())) ,
the whole expression object is taken as one?
End portion from running
example(stopifnot)
in R 3.5.0:
stpfnt> stopifnot(all.equal(pi, 3.141593),? 2 < 2, all(1:10 < 12), "a" < "b")
Error in eval(ei, envir) : pi and 3.141593 are not equal:
? Mean relative difference: 1.102658e-07
To me, "in eval(*)" is rather surprising and annoying and doesn't add clarity. Yes...
2019 Apr 14
0
stopifnot
...on()))
? Error in do.call(stopifnot, list(exprs = expression())) :
? ? expression() are not all TRUE
I'm about to commit a version [mostly from your suggestions],
where the above do.call() works as well.
? ? > End portion from running
? ? > example(stopifnot)
? ? > in R 3.5.0:
? ? stpfnt> stopifnot(all.equal(pi, 3.141593),? 2 < 2, all(1:10 < 12), "a" < "b")
? ? > Error in eval(ei, envir) : pi and 3.141593 are not equal:
? ? >?? Mean relative difference: 1.102658e-07
? ? > To me, "in eval(*)" is rather surprising and annoying and d...