开发者

R Batch Mode - Suppress output file

开发者 https://www.devze.com 2023-03-01 15:47 出处:网络
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 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

精彩评论

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