waldo icon indicating copy to clipboard operation
waldo copied to clipboard

Find differences between R objects

Results 27 waldo issues
Sort by recently updated
recently updated
newest added

Making it easier to spot (e.g.) a non-breaking space vs. a space.

feature

Accordingly to `?is.na` comparing NA_real_ and NaN is not exactly straight forward. It is stated future CPU-architectures may confound NA_real_ and NaN. Accordingly to `?is.nan` `identical()` or equality should not...

``` r waldo::compare(NA_real_, NaN) #> ✔ No differences ``` Created on 2022-08-29 by the [reprex package](https://reprex.tidyverse.org) (v2.0.1)

Symptom ====== ```R > expect_equal(0.105487503092834, 0.10548753, tolerance = 1.5e-7) Error: 0.105487503092834 (`actual`) not equal to 0.10548753 (`expected`). actual != expected but don't know how to show the difference ``` Encountered...

Any object can be an S4 in the sense of `isS4()` after it's passed to `asS4()`, waldo doesn't seem to check for this, if it did it would make it...

When using `compare` on vectors (lists, data.frames, etc), the `tolerance` paremater works differently than a naive user would expect. Rather than comparing each entry's deviation separately, it considers the mean...

Is this the expected behavior? ``` r x `attr(new, 'attr1')` is absent waldo::compare(x, y, list_as_map = TRUE) #> ✔ No differences attributes(x) #> $names #> [1] "a" "b" #> #>...