[Rd] translation domain is wrong in stopifnot()?

Gábor Csárdi c@@rd|@g@bor @end|ng |rom gm@||@com
Wed Dec 2 00:48:37 CET 2020

I don't know if this would be considered a bug in either stopifnot()
or (n)gettext(), or not a bug at all, but sometimes the translation
domain is not set properly for stopifnot() messages, so they won't be
translated. E.g.

Sys.setenv(LANGUAGE = "de")

# This is good
#> Fehler: FALSE ist nicht TRUE

f <- function() stopifnot(FALSE)
# This is not
#> Fehler in f() : FALSE is not TRUE


More information about the R-devel mailing list