Re: [Rd] Spurious output white line in R script (PR#8631)

From: Prof Brian Ripley <ripley_at_stats.ox.ac.uk>
Date: Thu 23 Feb 2006 - 05:58:51 GMT

On Wed, 22 Feb 2006, François Pinard wrote:

> [Simon Urbanek]
>
>> I don't see the bug here ... you may want to explain how this behavior
>> conflicts with the documentation.
>
> Oh, sorry. I merely surmised that R developers were aware of the
> meaning of "--slave" option.

We are.

> Within the output resulting of command
> "man R", one reads:
>
> --slave
> Make R run as quietly as possible
>
> So, I was not expecting R, running with that option activated, to
> "volunteer" white lines. :-)

But Simon said `with the documentation'. Not doing what you expected is not a bug. Can you please point us to documentation which says that end-of-file produces no output?

This does appear to be deliberate behaviour from

void end_Rmainloop(void)
{

     Rprintf("\n");
     /* run the .Last function. If it gives an error, will drop back to 
main
        loop. */
     R_CleanUp(SA_DEFAULT, 0, 1);

}

and I think it is necessary, as R might well have a partial line of output queued up for the console. So this is probably `as quietly as possible'.

[...]

-- 
Brian D. Ripley,                  ripley@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


______________________________________________ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Received on Thu Feb 23 17:07:00 2006

This archive was generated by hypermail 2.1.8 : Fri 24 Feb 2006 - 01:16:09 GMT