Skip to content
Prev 46223 / 63458 Next

Redirect system2 stdout to a file on windows

Works for me (Win 7 64bit) using R.exe:
[1] "C:/Users/hb/AppData/Local/Temp/RtmpSqjCDt"
[1] 0
size isdir mode               mtime               ctime
out.txt   12 FALSE  666 2013-07-15 00:02:06 2013-07-15 00:02:02
err.txt    0 FALSE  666 2013-07-15 00:02:06 2013-07-15 00:02:02
                      atime exe
out.txt 2013-07-15 00:02:02  no
err.txt 2013-07-15 00:02:02  no
R version 3.0.1 Patched (2013-07-10 r63264)
Platform: x86_64-w64-mingw32/x64 (64-bit)

locale:
[1] LC_COLLATE=English_United States.1252
[2] LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C
[5] LC_TIME=English_United States.1252

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base

loaded via a namespace (and not attached):
[1] tools_3.0.1

/Henrik

On Mon, Jul 15, 2013 at 12:01 AM, Gabor Grothendieck
<ggrothendieck at gmail.com> wrote: