Re: [Rd] Exit status of Rscript when setting options(error=utils::recover)

2019-03-18 Thread comic fans
e execution continues, > it is best not to set default error handlers in non-interactive use (or > set them so that they exit the session with a given exit status). > > Tomas > > On 3/10/19 4:15 AM, comic fans wrote: > > Hello, I've noticed that Rscript didn't exit with error c

[Rd] Exit status of Rscript when setting options(error=utils::recover)

2019-03-11 Thread comic fans
Hello, I've noticed that Rscript didn't exit with error code if I set options error = utils::recover in .Rprofile . for example Rscript -e "asdf" Error: object 'asdf' not found No suitable frames for recover() echo $? 0 if didn't set options in .Rprofile, Rscript exit with error code 1, is