(and no longer just "matrix" as before), and that conditions of length
greater than one in 'if' and 'while' statements executing in the package
being checked give an error.
According to the R NEWS file,
For now only active when environment variable _R_CLASS_MATRIXARRAY
is set to non-empty, but planned to be the new unconditional behavior
when R 4.0.0 is released:
matrix objects now also inherit from class "array", namely, e.g.,
class(diag(1)) is c("matrix", "array") which invalidates code
assuming that length(class(obj)) == 1, an incorrect assumption that
is less frequently fulfilled now.
S3 methods for "array", i.e., .array(), are now also
dispatched for matrix objects.
Apparently your package no longer works correctly when
class(matrix(...)) gives a vector of length two and conditions of length
greater than one in 'if' or 'while' give an error: please fix as
necessary.