Releases: r-lib/waldo
waldo 0.6.2
waldo 0.6.1
- Only use special bit64 comparison if package is installed.
waldo 0.6.0
-
waldo no longer imports tibble and rematch2 (@olivroy, #196), and
requires R 4.0.0. -
compare()
now gives informative errors if you misspecify the argument types
(#181). -
compare()
displays an extract digit in numeric comparisons, making it a bit
easier to see the different (#141). It can also show numeric differences
between int64 objects and integers/doubles whentolerance
is set (#159). -
compare()
gains basic support for S7 objects (#200), and can now
distinguish between objects that differ only in the value of their S4
bit (#189). -
compare(list_as_map = TRUE)
now preserves attributes (#185).
waldo 0.5.3
waldo 0.5.2
- Fixes for upcoming R-devel changes.
waldo 0.5.1
waldo 0.5.0
-
You can opt-out of quoting strings with
quote_strings = FALSE
(#145). -
Improvements to missing value handling:
-
NA_character_
and"NA"
are no longer treated as equal (#162). -
NA_real_
andNaN
are no longer treated as equal (@sorhawell, #150). -
Leading and trailing
NA
s are no longer omitted from output when the
lengths ofx
andy
are unequal (#109).
-
-
The
balanced
attribute used by somePOSIXlt
objects in R 4.3 and greater
is now ignored (#160). -
3d (and greater) numeric arrays no longer cause an error (#148).
-
Support for complex numbers is improved (#146).
-
ignore_attr = "class"
now works for more types of input (#143).
waldo 0.4.0
-
Atomic S3 classes with format methods now use those methods when
displaying comparisons (#98). If the printed representation is the
same, they fallback to displaying the underlying data. -
Rowwise data frame comparisons are now much much faster (#116),
and respect themax_diffs
argument (@krlmlr, #110). -
Unnamed environments now compare by value, not by reference (i.e. if
two environments contain the same values, they compare the same, even
if they're different environments) (#127). Environments that contain
self-references are handled correctly (#117). Differences between pairs
of environments are only ever reported once. -
In the unlikely event that you have bare CHARSXP objects, waldo now
handles them (#121). -
S4 objects are labelled with their class, not all superclasses (#125).
-
compare_proxy()
ignores the"index"
attribute for data tables
(@krlmlr, #107), and works again forRProtoBuf
objects
(@MichaelChirico, #119) -
Infinite values can be compared with a tolerance (@dmurdoch, #122).
waldo 0.3.1
waldo 0.3.0
-
compare()
is now considerably faster when comparing complex objects that
don't have any differences (thanks to strategic use ofidentical()
) (#86). -
compare()
gains two improvements to low-level diffs:-
Structurally identical data frames (#78) and numeric matrices (#76) gain
a row-by-row diff that makes it easier to see where exactly values differ. -
An element-by-element diff will be automatically used if it's shorter than
the "smart" diff. This improves diff quality when comparing two vectors
that aren't really related (#68).
-
-
compare()
gains alist_as_map
argument thanks to an idea from @dmurdoch.
It allows you to compare the behaviour of two lists when they are used to
connect names to values (i.e. the list is operating as a map or dictionary).
It removesNULL
s and sorts named components (#72). -
The objects involved in
compare()
(as opposed to the caller ofcompare()
)
gained much greater ability to control the comparison.-
Objects can now contain a
waldo_opts
attribute, a list with the same
names and valid values as the arguments tocompare()
, which overrides
the default comparisons (@dmurdoch). -
compare_proxy()
is now called earlier (before type comparison) making
it more flexible (#65). -
compare_proxy()
gains a second argument,path
, used to report how the
proxy changed the object. This makes it easier to see when and how a proxy
is used (#73). -
Proxies now exist for comparing RProtoBuf objects, converting them to
proto text format (#82, @michaelquinn32).
-
-
Comparing a list with symbol to a list without that element no longer errors
(@mgirlich, #79).