File: dot-underscore.Rd

package info (click to toggle)
r-cran-pkgcond 0.1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, trixie
  • size: 240 kB
  • sloc: sh: 13; makefile: 2
file content (30 lines) | stat: -rw-r--r-- 823 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/translate.R
\name{dot-underscore}
\alias{dot-underscore}
\alias{._}
\title{Format and Translate Strings}
\usage{
._(msg, ..., domain = NULL)
}
\arguments{
\item{msg}{The message to translate.}

\item{...}{
  Arguments passed on to \code{\link[base:sprintf]{base::gettextf}}
  \describe{
    \item{\code{fmt}}{a character vector of format strings, each of up to 8192 bytes.}
  }}

\item{domain}{see \code{\link[base:gettext]{base::gettext()}}}
}
\description{
This shortcut provides simple translation and formatting functionality.
Essentially it is a wrapper for \code{\link[base:gettext]{base::gettext()}} and \code{\link[base:sprintf]{base::gettextf()}}.
}
\examples{
loki <- list()
class(loki) <- "puny god"
._("I am a \%s.", class(loki))

}