Compare the string distance of messages to check for near-duplicates
Usage
get_message_distances(pkg = ".")
Arguments
pkg
The directory of an R package to extract diagnostic messages from. Path is passed to as.package.
Value
A tibble (data frame) containing messages, pluralized messages, and the file location of each message.
Details
Compares the generalized Levenshtein (edit) distance between pairs of messages using adist, returning the data frame of messages from get_messages with additional columns corresponding to the pairwise distance