[Rd] (PR#10534 capture.output(), truncated last output without \n
Prof Brian Ripley
ripley at stats.ox.ac.uk
Sat Dec 29 14:38:18 CET 2007
On Sat, 29 Dec 2007, Philippe Grosjean wrote:
> Thank you, Brian.
> Prof Brian Ripley wrote:
>> This only happens if 'file' is a text connection, and is the expected
>> behaviour in that case: you cannot capture an incomplete line to a text
> Well, in ?textConnection, Details section, one can read:
> "Closing the connection will output the final line, complete or not."
Yes, but 'rval' is returned before the connection is closed.
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
More information about the R-devel