Skip to content

assert_numeric error is uninformative for matrices #134

@selkamand

Description

@selkamand
library(assertions)
#> Warning: package 'assertions' was built under R version 4.4.1
assert_numeric(matrix(LETTERS[1:5]))
#> Error:
#> ! 'matrix(LETTERS[1:5])' must be numeric, not a matrix and array

Created on 2025-06-25 with reprex v2.1.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions