is_equal: Check equality of two objects

View source: R/is-equal.R

is_equalR Documentation

Check equality of two objects

Description

Utility function to use inside check_that.

Usage

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

## Default S3 method:
is_equal(x, y, eq_condition = "equivalent")

## S3 method for class '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).


datacamp/testwhat documentation built on June 26, 2022, 9:07 a.m.