Suppose I have to rather long (>100k character) strings which are mostly identical but differ in some locations.
Git has the concept of a 'diff', which shows only the differences between two (text) files.
Is there anything similar in R, where I can provide two strings and have it return a very 'human readable' excerpt showing only the differences for easily and clear visual inspection?
Desired output
Preferably a simple function call that accepts two (similar) strings as arguments, looks for differences between those two strings, and shows only the parts of the strings that differ, side by side, in either the R console or plot pane.
some_function(first_string, second_string)