Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update champ.SVD.R to work with R >= 4.0 #31

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

voudiou
Copy link

@voudiou voudiou commented Jan 16, 2023

Checking class(beta) will return "matrix" and "array" (if beta is a matrix) since R 4.0.0, breaking champ.SVD.

https://cran.r-project.org/doc/manuals/r-release/NEWS.html "matrix objects now also inherit from class "array", so e.g., class(diag(1)) is c("matrix", "array"). This invalidates code incorrectly assuming that class(matrix_obj)) has length one."

Checking with inherits work before and after 4.0.0.

Checking class(beta) will return "matrix" and "array" (if beta is a matrix) since R 4.0.0, breaking champ.SVD.

https://cran.r-project.org/doc/manuals/r-release/NEWS.html
"matrix objects now also inherit from class "array", so e.g., class(diag(1)) is c("matrix", "array"). This invalidates code incorrectly assuming that class(matrix_obj)) has length one."

Checking with inherits work before and after 4.0.0.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant