Temporarily change collation order by changing the value of the
LC_COLLATE
locale.
with_collate(new, code)local_collate(new, .local_envir = parent.frame())
[character(1)]
New collation order
[any]
Code to execute in the temporary environment
[environment]
The environment to use for scoping.
[any]
The results of the evaluation of the code
argument.
withr
for examples