Re: [R] capture.out(system())?

2007-09-06 Thread Werner Wernersen
Thank you very much, Professor Ripley! I am using Windows 2000 and the intern=T argument of system() did exactly what I needed: Now system() returns the output of the external program as an object. Thanks again, Werner --- Gustaf Rydevik [EMAIL PROTECTED] schrieb: On 9/4/07, Werner

Re: [R] capture.out(system())?

2007-09-05 Thread Gustaf Rydevik
On 9/4/07, Werner Wernersen [EMAIL PROTECTED] wrote: Hi, I am trying to capture the console output of program I call via system() but that always returns only character(0). For example: capture.output(system(pdflatex out.tex) ) will yield: character(0) and the output still written to

Re: [R] capture.out(system())?

2007-09-05 Thread Prof Brian Ripley
On Wed, 5 Sep 2007, Gustaf Rydevik wrote: On 9/4/07, Werner Wernersen [EMAIL PROTECTED] wrote: Hi, I am trying to capture the console output of program I call via system() but that always returns only character(0). For example: capture.output(system(pdflatex out.tex) ) will yield:

[R] capture.out(system())?

2007-09-04 Thread Werner Wernersen
Hi, I am trying to capture the console output of program I call via system() but that always returns only character(0). For example: capture.output(system(pdflatex out.tex) ) will yield: character(0) and the output still written to the R console. Is there a command for intercepting this