Message-ID: <Pine.LNX.4.64.0712291311030.23569@gannet.stats.ox.ac.uk>
Date: 2007-12-29T13:38:18Z
From: Brian Ripley
Subject: (PR#10534 capture.output(), truncated last output without \n
In-Reply-To: <47764114.7090400@sciviews.org>
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
>> connection.
>
> 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