We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LC_ALL
Motivated by some work I'm doing in reprex.
It would be nice to relax this prohibition in [with|local]_locale():
[with|local]_locale()
https://github.com/r-lib/withr/blob/master/R/locale.R#L6-L8
Have discussed in Slack with @jimhester and we think it's not that difficult and is worth doing. Capturing that convo here.
From the docs:
Note that setting category "LC_ALL" sets only categories "LC_COLLATE", "LC_CTYPE", "LC_MONETARY" and "LC_TIME".
You can't just take the output of Sys.getlocale() and roundtrip it straight into Sys.setlocale(). Instead, it will look more like:
Sys.getlocale()
Sys.setlocale()
... detect LC_ALL and convert it to stats::setNames(rep(my_new_locale, 4), c("LC_COLLATE", "LC_CTYPE", "LC_MONETARY", "LC_TIME"))
stats::setNames(rep(my_new_locale, 4), c("LC_COLLATE", "LC_CTYPE", "LC_MONETARY", "LC_TIME"))
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Motivated by some work I'm doing in reprex.
It would be nice to relax this prohibition in
[with|local]_locale()
:https://github.com/r-lib/withr/blob/master/R/locale.R#L6-L8
Have discussed in Slack with @jimhester and we think it's not that difficult and is worth doing. Capturing that convo here.
From the docs:
You can't just take the output of
Sys.getlocale()
and roundtrip it straight intoSys.setlocale()
. Instead, it will look more like:The text was updated successfully, but these errors were encountered: