(PR#10534 capture.output(), truncated last output without \n
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