[Rd] Redirect system2 stdout to a file on windows

Gabor Grothendieck ggrothendieck at gmail.com
Mon Jul 15 00:01:33 CEST 2013


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



More information about the R-devel mailing list