Message-ID: <CAP01uRmQDnPY7EnTCnp7gPB6HT=mnodoZJzqc=UTLtcezTX-sA@mail.gmail.com>
Date: 2013-07-14T22:01:33Z
From: Gabor Grothendieck
Subject: Redirect system2 stdout to a file on windows
In-Reply-To: <CABFfbXushi3DUc37Qg4mm=Ghib1j_pUjDirtobGEsUcZjf151Q@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