Utility function to use inside check_that.

is_equal(x, y, eq_condition = "equivalent")

# S3 method for default
is_equal(x, y, eq_condition = "equivalent")

# S3 method for formula
is_equal(x, y, eq_condition = "equivalent")

Arguments

x

object to test

y

object to compare

eq_condition

how to compare the objects: "equivalent" (the default, does not check attributes), "equal" (checks attributes, but allows for errors in machine precision), or "identical" (exactly identical).