[R] capturing stdout

Jim Holtman jholtman at gmail.com
Wed Dec 30 21:39:48 CET 2009


?capture.output
?sink

What is the problem you are trying to solve?

Sent from my iPhone.

On Dec 30, 2009, at 15:15, Nick Torenvliet <nick.torenvliet at gmail.com>  
wrote:

> I'm wondering if anyone knows of a way to capture system messages, for
> instance when I do the following:
>
>> system("../DBScripts/getEODData.sh")
> .//LSE_20091230.txt:                                   154.80 kB   
> 207.24
> kB/s
> ./Fundamentals//LSE.txt:                               420.58 kB   
> 301.47
> kB/s
> ./Fundamentals//MLSE.txt:                                3.42 kB    
> 16.20
> kB/s
> Remote host has closed the connection.
> ncftpget /: remote host closed control connection.
>>
>
> I'd like to get the stdout from the system call into some memory  
> location
> where I can play with it...
>
> Is there a simple way to do this?
>
>    [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.




More information about the R-help mailing list