Re: [Rd] Redirect standard output (PR#14148)

From: Duncan Murdoch <murdoch_at_stats.uwo.ca>
Date: Wed, 16 Dec 2009 07:17:53 -0500

On 15/12/2009 3:20 PM, joemsong_at_cs.nmsu.edu wrote:
> Full_Name: Joe Song
> Version: 2.10.0
> OS: Windows 7
> Submission from: (NULL) (97.123.159.234)
>
>
> Symptom: The following command in R
>

>> system("program > run.log")

>
> would not redirect standard output to the file "run.log".
>
> This bug did not exist on Windows XP, but appeared on Windows 7 when the same
> program is run.

That doesn't work on XP if program is an .exe, and I wouldn't expect it to. The system() command on Windows doesn't process redirects. See the documentation.

Duncan Murdoch



R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Wed 16 Dec 2009 - 12:21:09 GMT

This archive was generated by hypermail 2.2.0 : Wed 16 Dec 2009 - 14:51:06 GMT