Temporarily change locale settings.
with_locale(new, code)
[named character] New locale settings
[named character]
[any] Code to execute in the temporary environment
[any]
[any] The results of the evaluation of the code argument.
code
Setting the LC_ALL category is currently not implemented.
LC_ALL
withr for examples
withr
Sys.setlocale