From m|che||@ng @end|ng |rom gm@||@com  Thu Feb 28 13:23:13 2019
From: m|che||@ng @end|ng |rom gm@||@com (Michel Lang)
Date: Thu, 28 Feb 2019 13:23:13 +0100
Subject: [Rd] Exit status of Rscript
Message-ID: <CAF6EP_5U1UEG+q36mcmWOGj8-fHb7foEQ2-+Wv0+wOY252Pkow@mail.gmail.com>

Current R release (3.5.2) and devel return a 0 exit status on error,
while prior versions returned a non-zero exit status. On Linux and
MacOs, the following line returns TRUE for R-3.5.2 and R-devel, and
FALSE for R-3.5.1 and R-3.5.0:

system2("Rscript", c("-e", shQuote("stop('foo')"))) == 0

I didn't find this in the NEWS, so I believe this is a bug.

Best,
Michel



[Rd] Exit status of Rscript
Michel Lang