Intended to be called internally by package
req(m, r)
m
object
r
vector of elements to test for
throws error if required element is not present