get_messages: Extract diagnostic messages

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

View source: R/get_messages.R

Description

Extracts diagnostic messages from a package using xgettext

Usage

1
get_messages(pkg = ".")

Arguments

pkg

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

Details

Extracts diagnostic messages from a package.

Value

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

Author(s)

Thomas J. Leeper

See Also

spell_check_msgs, get_message_distances

Examples

1
2
3
pkg <- dummy_pkg()

get_messages(pkg = pkg)

msgtools documentation built on May 30, 2017, 5:12 a.m.