Description Usage Arguments Details Value Author(s) See Also Examples
View source: R/get_message_distances.R
Compare the string distance of messages to check for near-duplicates
1 | get_message_distances(pkg = ".")
|
pkg |
The directory of an R package to extract diagnostic messages from. Path is passed to |
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
A “tibble” (data frame) containing messages, pluralized messages, and the file location of each message.
Thomas J. Leeper
get_messages
, spell_check_msgs
1 2 3 4 | pkg <- dummy_pkg()
# get message distances
dist <- get_message_distances(pkg = pkg)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.