diff_str | R Documentation |
Characters are defined by UTF-8 graphemes.
diff_str(old, new, max_dist = Inf)
old |
First string, must not be |
new |
Second string, must not be |
max_dist |
Maximum distance to consider, or |
A list that is a cli_diff_str
object and also a
cli_diff_chr
object, see diff_str for the details about its
structure.
The diffobj package for a much more comprehensive set of
diff
-like tools.
Other diff functions in cli:
diff_chr()
str1 <- "abcdefghijklmnopqrstuvwxyz"
str2 <- "PREabcdefgMIDDLEnopqrstuvwxyzPOST"
diff_str(str1, str2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.