Closed inoue0426 closed 2 years ago
Hi,
I found this library doesn't work because of the change by R 4.2.0.
if (class(A_norm) != 'matrix') { doesn't work and it should use if (!(any(grepl("matrix", class(A_norm), ignore.case = TRUE)))) {
if (class(A_norm) != 'matrix') {
if (!(any(grepl("matrix", class(A_norm), ignore.case = TRUE)))) {
Can I make a Pull Request for that?
Could it be simpler?
!('matrix' %in% class(A_norm)) all(class(A_norm) != 'matrix')
Looks good to me!
Yes, please make a PR. Thanks so much. @inoue0426
@linqiaozhi Thanks! I created PR.
Hi,
I found this library doesn't work because of the change by R 4.2.0.
if (class(A_norm) != 'matrix') {
doesn't work and it should useif (!(any(grepl("matrix", class(A_norm), ignore.case = TRUE)))) {
Can I make a Pull Request for that?