I would like a pure R way to test whether two arbitrary files are different. So, the equivalent to diff -q in Unix, but should work on Windows and without exter
diff -q
Without using memory, if the files are too large:
library(tools) md5sum("file_1.txt") == md5sum("file_2.txt")