markmfredrickson / optmatch

Functions for optimal matching in R
https://markmfredrickson.github.io/optmatch
Other
47 stars 14 forks source link

class(matrix) on R-devel #182

Closed josherrickson closed 5 years ago

josherrickson commented 5 years ago

Looks like we've hit another error on R-devel, related to:

Newly, matrix objects also inherit from class "array", namely, e.g., class(diag(1)) is c("matrix", "array") which invalidates code (wrongly) assuming that length(class(obj)) == 1, a wrong assumption that is less frequently fulfilled now.

Fix is trivial, but having trouble testing - not seeing the error on Travis (perhaps need to wait a few days for devel version to update?) and devtools::check_win_devel() is giving me an error. I'll try again early next week.