Skip to content

issue solarPolygenic R version 4.0 #4

@Ferran-pv

Description

@Ferran-pv

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions