Determine if Diff Object Has Differences

# S4 method for class 'Diff'
any(x, ..., na.rm = FALSE)

Arguments

x

a Diff object

...

unused, for compatibility with generic

na.rm

unused, for compatibility with generic

Value

TRUE if there are differences, FALSE if not, FALSE with warning if there are no differences but objects are not all.equal

Examples

any(diffChr(letters, letters))
#> [1] FALSE
any(diffChr(letters, letters[-c(1, 5, 8)]))
#> [1] TRUE