Learn R Programming

pkgcond (version 0.1.1)

dot-underscore: Format and Translate Strings

Description

This shortcut provides simple translation and formatting functionality. Essentially it is a wrapper for base::gettext() and base::gettextf().

Usage

._(msg, ..., domain = NULL)

Arguments

msg

The message to translate.

...

Arguments passed on to base::gettextf

fmt

a character vector of format strings, each of up to 8192 bytes.

domain

Examples

Run this code
# NOT RUN {
loki <- list()
class(loki) <- "puny god"
._("I am a %s.", class(loki))

# }

Run the code above in your browser using DataLab