with_language {withr} | R Documentation |
Language
Description
Temporarily change the language used for translations.
Usage
with_language(lang, code)
local_language(lang, .local_envir = parent.frame())
Arguments
lang |
A BCP47 language code like "en" (English), "fr" (French), "fr_CA" (French Canadian). Formally, this is a lower case two letter ISO 639 country code, optionally followed by "_" or "-" and an upper case two letter ISO 3166 region code. |
code |
|
.local_envir |
|
Examples
with_language("en", try(mean[[1]]))
with_language("fr", try(mean[[1]]))
with_language("es", try(mean[[1]]))
[Package withr version 3.0.0 Index]