search for: aseert

Displaying 4 results from an estimated 4 matches for "aseert".

2018 Mar 12
3
Bug report: override stopifnot() ?
Hello, On Mon, Mar 12, 2018 at 09:30:59AM -0700, William Dunlap wrote: > Why don't you use > stopifnot( all(m1 == m2) ) > ? good question. Even though I use aseert np.all(m1 == m2) when working with NumPy, I got accustomed to the "handy shortcut" that I can omit all() with R vectors and matrices. Then I got trapped with the thing I reported. On a second thought, omitting all() might have been bad idea from the beginning; I should rather write all(...
2018 Mar 12
0
Bug report: override stopifnot() ?
...n Mon, Mar 12, 2018 at 10:53 AM, Stepan Kasal <kasal at ucw.cz> wrote: > Hello, > > On Mon, Mar 12, 2018 at 09:30:59AM -0700, William Dunlap wrote: > > Why don't you use > > stopifnot( all(m1 == m2) ) > > ? > > good question. Even though I use > aseert np.all(m1 == m2) > when working with NumPy, I got accustomed to the "handy shortcut" > that I can omit all() with R vectors and matrices. > > Then I got trapped with the thing I reported. > > On a second thought, omitting all() might have been bad idea from > the begi...
2018 Mar 12
0
Bug report: override stopifnot() ?
Why don't you use stopifnot( all(m1 == m2) ) ? Bill Dunlap TIBCO Software wdunlap tibco.com On Mon, Mar 12, 2018 at 8:15 AM, Stepan Kasal <kasal at ucw.cz> wrote: > Hello, > I stumbled over a problem: > stopifnot(m1 == m2) > > It works with vector or matrix, but does not work for classes from Matrix > package. > > In the source of stopifnot(), there is
2018 Mar 12
2
Bug report: override stopifnot() ?
Hello, I stumbled over a problem: stopifnot(m1 == m2) It works with vector or matrix, but does not work for classes from Matrix package. In the source of stopifnot(), there is all(m1 == m2) that would just work, but there is also is.logical(m1 == m2) that id FALSE. Would it be possible if Matrix package redefined stopifnot() ? (If there is a bug tracking database for package Matrix, I would