From ggrothendieck at gmail.com  Mon Jul 15 00:01:33 2013
From: ggrothendieck at gmail.com (Gabor Grothendieck)
Date: Sun, 14 Jul 2013 18:01:33 -0400
Subject: [Rd] Redirect system2 stdout to a file on windows
In-Reply-To: <CABFfbXushi3DUc37Qg4mm=Ghib1j_pUjDirtobGEsUcZjf151Q@mail.gmail.com>
References: <CABFfbXt=G7L1=4FFvZS5m=tVmEUg95eOBnJYo7u7GHz2D-keTg@mail.gmail.com>
	<CAP01uR=5jNc6p_DcC_RGvSk6XunZp=5-GuOrYSa5Viej=z-YUA@mail.gmail.com>
	<CABFfbXushi3DUc37Qg4mm=Ghib1j_pUjDirtobGEsUcZjf151Q@mail.gmail.com>
Message-ID: <CAP01uRmQDnPY7EnTCnp7gPB6HT=mnodoZJzqc=UTLtcezTX-sA@mail.gmail.com>

On Sun, Jul 14, 2013 at 5:20 PM, Jeroen Ooms <jeroen.ooms at stat.ucla.edu> wrote:
> On Sun, Jul 14, 2013 at 10:24 PM, Gabor Grothendieck wrote:
>> Try:
>> out.txt <- normalizePath("./out.txt", mustWork = FALSE)
>
> Doesn't work either, neither on Win7 nor WinXP.
>
>> sessionInfo()
> R version 3.0.1 (2013-05-16)
> Platform: x86_64-w64-mingw32/x64 (64-bit)

Not sure what happened but I tried it again and it did not work on my
system either.

If a workaround is ok then this works on my system:

shell(paste("whoami", ">", "out.txt"))



--
Statistics & Software Consulting
GKX Group, GKX Associates Inc.
tel: 1-877-GKX-GROUP
email: ggrothendieck at gmail.com



[Rd] Redirect system2 stdout to a file on windows
Gabor Grothendieck