I am currently implementing unit tests with testthat::expect_equal(). For testthat version 3, this tests for relative differences unless the difference between the input values is very small, in which case, the test is based on an absolute difference measure. Is there an elegant way to force expect_equal to use an absolute distance measure, even when the differences between $x$ and $y$ are not small?
Here is a link to the documentation of expect_equal.
Thanks!