I think this must be a duplicate but I can't seem to find the answer on stack. Is there a way to compare two R scripts in the same wd to see if they are identical?
Something like:
a <- source("script1.R")
b <- source("script2.R")
identical(a, b)
I don't just mean the functions in each script but all the other things like comments etc.
Thanks