compareIgnoreAttrs {compare} | R Documentation |
Compare two objects for equality, ignoring any attributes if necessary beforehand.
compareIgnoreAttrs(model, comparison, transform = character(), equal = TRUE, ...)
model |
The “correct” object. |
comparison |
The object to be compared with the |
transform |
A character vector containing any transformations that have been performed on the objects prior to this comparison. |
equal |
Whether to test for equality if the test for identity fails. |
... |
Arguments passed to |
An object of class "comparison"
.
Use isTRUE()
to determine whether the
comparison has succeeded.
Paul Murrell
compare
and
compareEqual
model <- list(a=1:26, b=letters) comparison <- model attr(comparison, "test") <- "test" compareIgnoreAttrs(model, comparison)