Open cbeleites opened 3 years ago
@cbeleites, could you, please, refer to a particular place where this issue arises?
Do suggestions in Stack Overflow comment (this is the one you sent) solve the issue?
e.g., this one:
expect_error_lang <- function(..., lang = "EN") {
Sys.setenv("LANGUAGE" = lang)
expect_error(...)
Sys.unsetenv("LANGUAGE")
}
When checking for the correct
warning()
or error message, some of them are translated by R depending on language settings.