all.equal.join_keys: Test if two objects are (nearly) equal

View source: R/testhat-helpers.R

all.equal.join_keysR Documentation

Test if two objects are (nearly) equal

Description

all.equal(target, current) is a utility to compare join_keys objects target and current testing ⁠near equality⁠.

Usage

## S3 method for class 'equal.join_keys'
all(target, current, ...)

Arguments

target

R object.

current

other R object, to be compared with target.

...

further arguments for different methods. Not used with join_keys.

Details

If they are different, comparison is still made to some extent, and a report of the differences is returned. Do not use all.equal directly in if expressions—either use isTRUE(all.equal(....)) or identical if appropriate.

The parents attribute comparison tolerates NULL and empty lists and will find no difference.

The list containing all the relationships is treated like a map and ignores entries with NULL if they exist.

See Also

base::all.equal()


teal.data documentation built on May 29, 2024, 8:03 a.m.