Skip to content
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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Conversation

krlmlr
Copy link
Member

@krlmlr krlmlr commented Oct 8, 2023

Otherwise tests show warnings for me.

@krlmlr krlmlr requested a review from lionel- October 8, 2023 20:12
@krlmlr
Copy link
Member Author

krlmlr commented Oct 8, 2023

Confirming that this fixes my problems with dev withr: r-dbi/RMariaDB@9e1f5d1.

I wonder why testthat's own tests fail now.

@lionel-
Copy link
Member

lionel- commented Oct 9, 2023

Maybe you need to adjust the tests like this? r-lib/withr@08619ef

@krlmlr
Copy link
Member Author

krlmlr commented Oct 9, 2023

Tried a moonshot, but could you please take this on (fixing tests if needed, NEWS, ...)?

R/local.R Outdated Show resolved Hide resolved
Co-authored-by: Lionel Henry <[email protected]>
@hadley hadley requested a review from lionel- February 13, 2024 13:24
@hadley
Copy link
Member

hadley commented Feb 13, 2024

@lionel- can you take another look at this please?

@@ -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"))) {
Copy link
Member

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?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep good idea

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants