From ripley at stats.ox.ac.uk  Sun Oct 18 07:22:09 2009
From: ripley at stats.ox.ac.uk (Prof Brian Ripley)
Date: Sun, 18 Oct 2009 06:22:09 +0100 (BST)
Subject: [Rd] Rscript not returning zero
In-Reply-To: <cad62a920910171906rfed2f81u5111443fc4468377@mail.gmail.com>
References: <cad62a920910171906rfed2f81u5111443fc4468377@mail.gmail.com>
Message-ID: <alpine.LFD.2.00.0910180612130.28565@gannet.stats.ox.ac.uk>

On Sat, 17 Oct 2009, Rodrigo Flores wrote:

> Hi
>
> I'm trying to run a R script in a computer grid using the Rscript
> interpreter, but the Rscript is not returning zero (even when the
> scripts processes succesfully) on its exit which causes the scheduler
> to detect an error and not records the output.
>
> Is there any way to get the Rscript returning zero ?

Have a successful script ....

You have not told us the 'at a minimum' information asked for in the 
posting guide, whereas I get (under sh)

sh-3.2$ Rscript -e 'sessionInfo()'
R version 2.9.2 (2009-08-24)
x86_64-unknown-linux-gnu

locale:
LC_CTYPE=en_GB.utf8;LC_NUMERIC=C;LC_TIME=en_GB.utf8;LC_COLLATE=C;LC_MONETARY=C;LC_MESSAGES=en_GB.utf8;LC_PAPER=en_GB.utf8;LC_NAME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=en_GB.utf8;LC_IDENTIFICATION=C

attached base packages:
[1] stats     graphics  grDevices utils     datasets  base
sh-3.2$ echo $?
0

so please give a reproducible example of a successful script not 
returning zero.

> Rodrigo L. M. Flores
> Computer Science Student - IME - USP
> Homepage (en): http://www.rodrigoflores.org
> Blog (pt-BR): http://blog.rodrigoflores.org


-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



[Rd] Rscript not returning zero
Prof Brian Ripley