You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I compare two files that should have the same contents, diffFile reports a non-visible difference. Is this expected behavior? Is there a way to suppress reporting of this invisible difference, if it represents something real?
library(diffobj)
#> Warning: package 'diffobj' was built under R version 3.5.2x<- tempfile()
cat("Hello\nthere\n", file=x)
diffFile(x, x, format="raw")
#> No visible differences between objects.#> < x #> > x #> @@ 1,2 / 1,2 @@ #> Hello #> therey<- tempfile()
file.copy(x, y)
#> [1] TRUE
diffFile(x, y, format="raw")
#> No visible differences between objects, but objects are *not* `all.equal`:#> - 1 string mismatch#> < x #> > y #> @@ 1,2 / 1,2 @@ #> Hello #> there
Oh, I note that this doesn't seem to have anything to do with white space:
diffFile(x, y, format="raw", trim=FALSE, ignore.white.space=TRUE,
convert.hz.white.space=FALSE)
#> No visible differences between objects, but objects are *not* `all.equal`:#> - 1 string mismatch#> < x #> > y #> @@ 1,2 / 1,2 @@ #> Hello #> there
When I compare two files that should have the same contents,
diffFile
reports a non-visible difference. Is this expected behavior? Is there a way to suppress reporting of this invisible difference, if it represents something real?Created on 2019-04-21 by the reprex package (v0.2.1)
Session info
The text was updated successfully, but these errors were encountered: