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

issue solarPolygenic R version 4.0 #4

Open
Ferran-pv opened this issue Nov 11, 2020 · 0 comments
Open

issue solarPolygenic R version 4.0 #4

Ferran-pv opened this issue Nov 11, 2020 · 0 comments

Comments

@Ferran-pv
Copy link

Ferran-pv commented Nov 11, 2020

Hi,

With R version 4.0 matrix objects now also inherit from class "array", so e.g., class(matrix(1:9)) is c("matrix", "array"). This is problematic if you want to use de function solarPolygenic with the parameter "kinship" because the function checks if this input is a matrix... but it's not only a matrix anymore. So, you cannot use this function with a predefined kinship matrix.

It returns this error: <Error in kmat2kf(kmat) : class(kmat) == "matrix" are not all TRUE>.

Could you fix this bug, please?

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

No branches or pull requests

1 participant