`all.equal`

is a generic function, dispatching methods on the
`target`

argument. To see the available methods, use
`methods("all.equal")`

, but note that the default method
also does some dispatching, e.g. using the raw method for logical
targets. Numerical comparisons for `scale = NULL`

(the default) are done
by first computing the mean absolute difference of the two numerical
vectors. If this is smaller than `tolerance`

or not finite,
absolute differences are used, otherwise relative differences scaled
by the mean absolute difference.

If `scale`

is positive, absolute comparisons are made after
scaling (dividing) by `scale`

.

For complex `target`

, the modulus (`Mod`

) of the
difference is used: `all.equal.numeric`

is called so arguments
`tolerance`

and `scale`

are available.

The method for the date-time class `"POSIXct"`

by default
allows a tolerance of `tolerance = 0.001`

seconds.

`attr.all.equal`

is used for comparing
`attributes`

, returning `NULL`

or a
`character`

vector.