Learn R Programming

msgtools (version 0.2.4)

get_messages: Extract diagnostic messages

Description

Extracts diagnostic messages from a package using xgettext

Usage

get_messages(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

Extracts diagnostic messages from a package.

See Also

spell_check_msgs, get_message_distances

Examples

Run this code
pkg <- dummy_pkg()

get_messages(pkg = pkg)

Run the code above in your browser using DataLab