| diff_str {cli} | R Documentation | 
Compare two character strings, character by character
Description
Characters are defined by UTF-8 graphemes.
Usage
diff_str(old, new, max_dist = Inf)
Arguments
old | 
 First string, must not be   | 
new | 
 Second string, must not be   | 
max_dist | 
 Maximum distance to consider, or   | 
Value
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.
See Also
The diffobj package for a much more comprehensive set of
diff-like tools.
Other diff functions in cli: 
diff_chr()
Examples
str1 <- "abcdefghijklmnopqrstuvwxyz"
str2 <- "PREabcdefgMIDDLEnopqrstuvwxyzPOST"
diff_str(str1, str2)
[Package cli version 3.6.3 Index]