Displaying 12 results from an estimated 12 matches for "lsymatrix".
Did you mean:
dsymatrix
S3 dispatch for S4 subclasses only works if variable "extends" is accessible from global environment
2016 Apr 18
3
S3 dispatch for S4 subclasses only works if variable "extends" is accessible from global environment
...roduce:
> Rscript -e "test <- function(x) UseMethod('test', x); test.Matrix <-
function(x) 'Hi'; MatrixDispatchTest::test(Matrix::Matrix())"
Error in UseMethod("test", x) :
no applicable method for 'test' applied to an object of class "lsyMatrix"
Calls: <Anonymous>
1: MatrixDispatchTest::test(Matrix::Matrix())
> Rscript -e "extends <- 42; test <- function(x) UseMethod('test', x);
test.Matrix <- function(x) 'Hi'; MatrixDispatchTest::test(Matrix::Matrix())"
[1] "Hi"
To me, it loo...
2018 Mar 12
0
Bug report: override stopifnot() ?
...nusual can happen, you should use the identical
<http://127.0.0.1:22171/help/library/base/help/identical> function instead.
"
So you have already violated that specific warning, which led to the
confusion you evidence. Specifically:
> Matrix(1)== Matrix(1)
1 x 1 Matrix of class "lsyMatrix"
[,1]
[1,] TRUE
That is, the result is not a logical but a (S4) object of class "lsyMatrix"
that contains a logical. Whence your (expected) error message.
Cheers,
Bert
Bert Gunter
"The trouble with having an open mind is that people keep coming along and
sticking t...
S3 dispatch for S4 subclasses only works if variable "extends" is accessible from global environment
2016 Apr 19
3
S3 dispatch for S4 subclasses only works if variable "extends" is accessible from global environment
...t;test <- function(x) UseMethod('test', x); test.Matrix <-
>>> function(x) 'Hi'; MatrixDispatchTest::test(Matrix::Matrix())"
>> Error in UseMethod("test", x) :
>> no applicable method for 'test' applied to an object of class "lsyMatrix"
>> Calls: <Anonymous>
>> 1: MatrixDispatchTest::test(Matrix::Matrix())
>>
>>> Rscript -e "extends <- 42; test <- function(x) UseMethod('test', x);
>>> test.Matrix <- function(x) 'Hi'; MatrixDispatchTest::test(Matrix::Matr...
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,
S3 dispatch for S4 subclasses only works if variable "extends" is accessible from global environment
2016 Apr 19
2
S3 dispatch for S4 subclasses only works if variable "extends" is accessible from global environment
...rix <-
> >>>> function(x) 'Hi'; MatrixDispatchTest::test(Matrix::Matrix())"
> >>>
> >>> Error in UseMethod("test", x) :
> >>> no applicable method for 'test' applied to an object of class
> >>> "lsyMatrix"
> >>> Calls: <Anonymous>
> >>> 1: MatrixDispatchTest::test(Matrix::Matrix())
> >>>
> >>>> Rscript -e "extends <- 42; test <- function(x) UseMethod('test', x);
> >>>> test.Matrix <- function(x) 'H...
S3 dispatch for S4 subclasses only works if variable "extends" is accessible from global environment
2016 Apr 19
4
S3 dispatch for S4 subclasses only works if variable "extends" is accessible from global environment
...tion(x) 'Hi'; MatrixDispatchTest::test(Matrix::Matrix())"
> >> >>>
> >> >>> Error in UseMethod("test", x) :
> >> >>> no applicable method for 'test' applied to an object of class
> >> >>> "lsyMatrix"
> >> >>> Calls: <Anonymous>
> >> >>> 1: MatrixDispatchTest::test(Matrix::Matrix())
> >> >>>
> >> >>>> Rscript -e "extends <- 42; test <- function(x) UseMethod('test',
> x);
> >> >...
2018 Apr 23
4
R 3.5.0 fails its regression test suite on Linux/x86_64
...RUE
| >
| > Matrix> Matrix(diag(4) > 0, sparse=TRUE)# -> sparse...
| > 4 x 4 sparse Matrix of class "lsCMatrix"
| >
| > [1,] | . . .
| > [2,] . | . .
| > [3,] . . | .
| > [4,] . . . |
| >
| > Matrix> Matrix(diag(4) >= 0)# -> "lsyMatrix" (of all 'TRUE')
| > 4 x 4 Matrix of class "lsyMatrix"
| > [,1] [,2] [,3] [,4]
| > [1,] TRUE TRUE TRUE TRUE
| > [2,] TRUE TRUE TRUE TRUE
| > [3,] TRUE TRUE TRUE TRUE
| > [4,] TRUE TRUE TRUE TRUE
| >
| > Matrix> ## triangular
| > Mat...
S3 dispatch for S4 subclasses only works if variable "extends" is accessible from global environment
2016 Apr 19
0
S3 dispatch for S4 subclasses only works if variable "extends" is accessible from global environment
...cript -e "test <- function(x) UseMethod('test', x); test.Matrix <-
>> function(x) 'Hi'; MatrixDispatchTest::test(Matrix::Matrix())"
> Error in UseMethod("test", x) :
> no applicable method for 'test' applied to an object of class "lsyMatrix"
> Calls: <Anonymous>
> 1: MatrixDispatchTest::test(Matrix::Matrix())
>
>> Rscript -e "extends <- 42; test <- function(x) UseMethod('test', x);
>> test.Matrix <- function(x) 'Hi'; MatrixDispatchTest::test(Matrix::Matrix())"
> [1]...
S3 dispatch for S4 subclasses only works if variable "extends" is accessible from global environment
2016 Apr 19
0
S3 dispatch for S4 subclasses only works if variable "extends" is accessible from global environment
...9;test', x); test.Matrix <-
>>>> function(x) 'Hi'; MatrixDispatchTest::test(Matrix::Matrix())"
>>>
>>> Error in UseMethod("test", x) :
>>> no applicable method for 'test' applied to an object of class
>>> "lsyMatrix"
>>> Calls: <Anonymous>
>>> 1: MatrixDispatchTest::test(Matrix::Matrix())
>>>
>>>> Rscript -e "extends <- 42; test <- function(x) UseMethod('test', x);
>>>> test.Matrix <- function(x) 'Hi';
>>>>...
2018 Apr 23
0
R 3.5.0 fails its regression test suite on Linux/x86_64
...t; 0, sparse=TRUE)# -> sparse...
> | > 4 x 4 sparse Matrix of class "lsCMatrix"
> | >
> | > [1,] | . . .
> | > [2,] . | . .
> | > [3,] . . | .
> | > [4,] . . . |
> | >
> | > Matrix> Matrix(diag(4) >= 0)# -> "lsyMatrix" (of all 'TRUE')
> | > 4 x 4 Matrix of class "lsyMatrix"
> | > [,1] [,2] [,3] [,4]
> | > [1,] TRUE TRUE TRUE TRUE
> | > [2,] TRUE TRUE TRUE TRUE
> | > [3,] TRUE TRUE TRUE TRUE
> | > [4,] TRUE TRUE TRUE TRUE
> | >
&g...
S3 dispatch for S4 subclasses only works if variable "extends" is accessible from global environment
2016 Apr 19
0
S3 dispatch for S4 subclasses only works if variable "extends" is accessible from global environment
...gt;>>> function(x) 'Hi'; MatrixDispatchTest::test(Matrix::Matrix())"
>> >>>
>> >>> Error in UseMethod("test", x) :
>> >>> no applicable method for 'test' applied to an object of class
>> >>> "lsyMatrix"
>> >>> Calls: <Anonymous>
>> >>> 1: MatrixDispatchTest::test(Matrix::Matrix())
>> >>>
>> >>>> Rscript -e "extends <- 42; test <- function(x) UseMethod('test', x);
>> >>>> test.Matrix <...
S3 dispatch for S4 subclasses only works if variable "extends" is accessible from global environment
2016 Apr 19
0
S3 dispatch for S4 subclasses only works if variable "extends" is accessible from global environment
...#39;; MatrixDispatchTest::test(Matrix::Matrix())"
>> >> >>>
>> >> >>> Error in UseMethod("test", x) :
>> >> >>> no applicable method for 'test' applied to an object of class
>> >> >>> "lsyMatrix"
>> >> >>> Calls: <Anonymous>
>> >> >>> 1: MatrixDispatchTest::test(Matrix::Matrix())
>> >> >>>
>> >> >>>> Rscript -e "extends <- 42; test <- function(x) UseMethod('test',
>> x...