From c@@rd|@g@bor @end|ng |rom gm@||@com  Wed Dec  2 00:48:37 2020
From: c@@rd|@g@bor @end|ng |rom gm@||@com (=?UTF-8?B?R8OhYm9yIENzw6FyZGk=?=)
Date: Tue, 1 Dec 2020 23:48:37 +0000
Subject: [Rd] translation domain is wrong in stopifnot()?
Message-ID: <CABtg=KmgYOiapjccOVrF-qHSsUYzOtu5RAfiaMrbBidmMmhbwg@mail.gmail.com>

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
stopifnot(FALSE)
#> Fehler: FALSE ist nicht TRUE

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

Gabor



[Rd] translation domain is wrong in stopifnot()?
=?UTF-8?B?R8OhYm9yIENzw6FyZGk=?=