need to avoid constructions like "cross" %in% class(object) and instead use inherits(object, "cross")
most importantly, matrices now have class that is a vector of length two (c("matrix", "array")) and effectplot() had done something like class(object) == "matrix" rather than is.matrix(object)
need to avoid constructions like
"cross" %in% class(object)
and instead useinherits(object, "cross")
most importantly, matrices now have class that is a vector of length two (
c("matrix", "array")
) andeffectplot()
had done something likeclass(object) == "matrix"
rather thanis.matrix(object)