title: Compare two strings and look for differences and display them for easy viewing in R (similar to git diff)?
body: <p>Suppose I have two rather long (&gt;100k character) strings which are mostly identical but differ in some locations.</p>
  <p>Git has the concept of a 'diff', which shows only the differences between two (text) files.</p>
  <p>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?</p>
  <h3>Desired output</h3>
  <p>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.</p>
  <pre><code>some_function(first_string, second_string) 
  </code></pre>