get_message_distances: Compare message distance

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Compare the string distance of messages to check for near-duplicates

Usage

1

Arguments

pkg

The directory of an R package to extract diagnostic messages from. Path is passed to as.package.

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

Value

A “tibble” (data frame) containing messages, pluralized messages, and the file location of each message.

Author(s)

Thomas J. Leeper

See Also

get_messages, spell_check_msgs

Examples

1
2
3
4
pkg <- dummy_pkg()

# get message distances
dist <- get_message_distances(pkg = pkg)

RL10N/msgtools documentation built on May 8, 2019, 5:56 a.m.