Software
waldo

waldo

Find differences between R objects

R

waldo finds and describes differences between pairs of R objects, primarily designed to help debug failing unit tests. The compare() function works like all.equal() but provides more actionable output for troubleshooting.

The package prioritizes differences from most to least important, displays only the values that actually differ in atomic vectors, and uses color to highlight changes. It shows differences using executable R code paths rather than text descriptions, compares named elements by name instead of position, and includes context around changes in long vectors. The output adapts to console width with three display modes for optimal readability.

Contributors