with_locale

0th

Percentile

Locale settings

Temporarily change locale settings.

Usage
with_locale(new, code)

local_locale(new, .local_envir = parent.frame())

Arguments
new

[named character] New locale settings

code

[any] Code to execute in the temporary environment

.local_envir

[environment] The environment to use for scoping.

Details

Setting the LC_ALL category is currently not implemented.

Value

[any] The results of the evaluation of the code argument.

See Also

withr for examples

Sys.setlocale()

Aliases
  • with_locale
  • local_locale
Documentation reproduced from package withr, version 2.1.0, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.