-
Notifications
You must be signed in to change notification settings - Fork 318
New issue
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
Align with withr::local_language()
from dev withr
#1879
Conversation
Confirming that this fixes my problems with dev withr: r-dbi/RMariaDB@9e1f5d1.
I wonder why testthat's own tests fail now. |
Maybe you need to adjust the tests like this? r-lib/withr@08619ef |
Tried a moonshot, but could you please take this on (fixing tests if needed, NEWS, ...)? |
@lionel- can you take another look at this please? |
R/local.R
Outdated
@@ -133,8 +133,10 @@ local_reproducible_output <- function(width = 80, | |||
.local_envir = .env | |||
) | |||
|
|||
if (isTRUE(capabilities("NLS")) && Sys.getenv("LANG") != "C") { | |||
withr::local_language(lang, .local_envir = .env) | |||
if (isTRUE(capabilities("NLS"))) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we also bump version in DESCRIPTION
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep good idea
Should also mention in I wonder if we should just deprecate that argument though. It seems impractical to use. |
Co-authored-by: Lionel Henry <[email protected]>
bc448a9
to
f3ad181
Compare
I now think:
(1) is now implemented here and I've sent a patch release of withr to CRAN with (2). |
I'll merge this once withr is on CRAN and we can bump the requirement here. |
For `withr::local_language("C")` support 3.0.2 never warns when set to `"C"`
withr is on CRAN and I've bumped the dep before merging. |
Closes #1925