开发者

R Batch Mode - Suppress output file

I have some scripts that I run using R's batc开发者_运维技巧h mode.

/usr/bin/R CMD BATCH --vanilla --no-timing ~/scripts/R/sess_dur.R

I redirect the output to a file using:

> sink("~/scripts_output/R_output.txt",append=TRUE)

The problem is that when I run this script, files are created with the same name of the script and the "out" suffix (sess_dur.Rout).

There is some way to tell R not to generate these files?


Have you tried something like:

R CMD BATCH --vanilla --no-timing ~/scripts/R/sess_dur.R /dev/null
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜