Skip to content

(PR#10534 capture.output(), truncated last output without \n

2 messages · Philippe GROSJEAN, Brian Ripley

#
Thank you, Brian.
Prof Brian Ripley wrote:
Well, in ?textConnection, Details section, one can read:
"Closing the connection will output the final line, complete or not."
This is fine, except one cannot detect when the last line was complete 
or not in capture.output(). I suggest adding an attribute complete = 
TRUE/FALSE to the result returned by capture.output(), or any other mean 
to return this information.

Best,

Philippe Grosjean
#
On Sat, 29 Dec 2007, Philippe Grosjean wrote:

            
Yes, but 'rval' is returned before the connection is closed.